title: C# Linq Average
body: <p>I have a table with data similar to below:</p>
  
  <pre><code>Group    TimePoint    Value
    1          0          1
    1          0          2
    1          0          3
    1          1          3
    1          1          5
  </code></pre>
  
  <p>I want to project a table as such:</p>
  
  <pre><code>Group    TimePoint   AverageValue
    1          0            2
    1          1            4
  </code></pre>
  
  <p>EDIT:  The data is in a datatable.</p>
  
  <p>Anybody any ideas how this can be done with LINQ or otherwise?</p>
  
  <p>Thanks.</p>