sumNAperGroup: Count number of NAs per sub-set of columns
Description
This function will count the number of NAs per group (defined by argument grp) while summing over all lines of a matrix or data.frame.
The row-position has no influence on the counting.
Using the argument asRelative=TRUE the result will be given as (average) number of NAs per row and group.