colmin {biganalytics} | R Documentation |
Functions operate on columns of a
big.matrix
object
colmin(x, cols = NULL, na.rm = FALSE) ## S4 method for signature 'big.matrix' colmin(x, cols = NULL, na.rm = FALSE) ## S4 method for signature 'big.matrix' min(x, ..., na.rm = FALSE) colmax(x, cols = NULL, na.rm = FALSE) ## S4 method for signature 'big.matrix' colmax(x, cols = NULL, na.rm = FALSE) ## S4 method for signature 'big.matrix' max(x, ..., na.rm = FALSE) colprod(x, cols = NULL, na.rm = FALSE) ## S4 method for signature 'big.matrix' colprod(x, cols = NULL, na.rm = FALSE) ## S4 method for signature 'big.matrix' prod(x, ..., na.rm = FALSE) colsum(x, cols = NULL, na.rm = FALSE) ## S4 method for signature 'big.matrix' colsum(x, cols = NULL, na.rm = FALSE) ## S4 method for signature 'big.matrix' sum(x, ..., na.rm = FALSE) colrange(x, cols = NULL, na.rm = FALSE) ## S4 method for signature 'big.matrix' colrange(x, cols = NULL, na.rm = FALSE) ## S4 method for signature 'big.matrix' range(x, ..., na.rm = FALSE) colmean(x, cols = NULL, na.rm = FALSE) ## S4 method for signature 'big.matrix' colmean(x, cols = NULL, na.rm = FALSE) ## S4 method for signature 'big.matrix' mean(x, ...) colvar(x, cols = NULL, na.rm = FALSE) ## S4 method for signature 'big.matrix' colvar(x, cols = NULL, na.rm = FALSE) colsd(x, cols = NULL, na.rm = FALSE) ## S4 method for signature 'big.matrix' colsd(x, cols = NULL, na.rm = FALSE) colna(x, cols = NULL) ## S4 method for signature 'big.matrix' colna(x, cols = NULL) ## S4 method for signature 'big.matrix' summary(object)
x |
a |
cols |
a scalar or vector of column(s) to be summarized. |
na.rm |
if |
object |
a |
... |
options associated with the correspoding default R function. |
These functions essentially apply summary functions to each
column (or each specified column) of the
big.matrix
in turn.
For colrange
, a matrix with two columns and
length(cols)
rows; column 1 contains the minimum, and column 2
contains the maximum for that column. The other functions return vectors
of length length(cols)
.
x <- as.big.matrix( matrix( sample(1:10, 20, replace=TRUE), 5, 4, dimnames=list( NULL, c("a", "b", "c", "d")) ) ) x[,] mean(x) colmean(x) colmin(x) colmin(x, 1) colmax(x) colmax(x, "b") colsd(x) colrange(x) range(x) colsum(x) colprod(x)