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