powered by
This function takes a snap object and returns the row means of its count matrix.
# S4 method for snap rowMeans(x, mat = c("bmat", "pmat", "gmat"), na.rm = TRUE)
A snap object
A charater object indicates what matrix slot to use for calculation
A logical variable indicates wether to remove NA in the matrix
# NOT RUN { data(demo.sp); a = rowMeans(demo.sp, mat="bmat"); b = rowMeans(demo.sp, mat="pmat"); d = rowMeans(demo.sp, mat="gmat"); # }
Run the code above in your browser using DataLab