datarail / gr_metrics

15 stars 12 forks source link

change from averaging cell counts to averaging GR values on collapseKeys #37

Closed NicholasClark closed 1 year ago

NicholasClark commented 6 years ago

Previously when using the "collapseKeys" parameter (i.e. telling the script to average over a variable), the mean of cell counts was taken and then the GR value computed. This update changes the script so that a GR value is computed for each cell count and then these values are averaged.

This matches how the GRmetrics R package handles averaging so that the output from the two functions is the same when averaging over variables.