#' @title colSums #' @method colSums mass_dataset #' @param x x #' @param na.rm na.rm #' @param dims dims #' @export #' @rdname arithmetic-mass_dataset #' @return vector object

#' @title rowSums #' @method rowSums mass_dataset #' @param x x #' @param na.rm na.rm #' @param dims dims #' @export #' @rdname arithmetic-mass_dataset #' @return vector object

#' @title colMeans #' @method colMeans mass_dataset #' @param x x #' @param na.rm na.rm #' @param dims dims #' @export #' @rdname arithmetic-mass_dataset #' @return vector object

#' @title rowMeans #' @method rowMeans mass_dataset #' @param x x #' @param na.rm na.rm #' @param dims dims #' @export #' @rdname arithmetic-mass_dataset #' @return vector object

# S3 method for mass_dataset
log(x, base = exp(1))

# S3 method for mass_dataset
abs(x)

# S3 method for mass_dataset
sqrt(x)

# S3 method for mass_dataset
scale(x, center = TRUE, scale = TRUE)

# S4 method for mass_dataset,numeric
+(e1, e2)

# S4 method for mass_dataset,numeric
-(e1, e2)

# S4 method for mass_dataset,numeric
*(e1, e2)

# S4 method for mass_dataset,numeric
/(e1, e2)

# S4 method for mass_dataset,numeric
>(e1, e2)

# S4 method for mass_dataset,numeric
>=(e1, e2)

# S4 method for mass_dataset,numeric
<(e1, e2)

# S4 method for mass_dataset,numeric
<=(e1, e2)

# S4 method for mass_dataset,numeric
==(e1, e2)

# S4 method for mass_dataset
colSums(x, na.rm = FALSE, dims = 1)

# S4 method for mass_dataset
rowSums(x, na.rm = FALSE, dims = 1)

# S4 method for mass_dataset
colMeans(x, na.rm = FALSE, dims = 1)

# S4 method for mass_dataset
rowMeans(x, na.rm = FALSE, dims = 1)

Arguments

x

x

base

base

center

center

scale

scale

e1

a mass_dataset class object

e2

numeric

na.rm

na.rm

dims

dims

Value

mass_dataset object

mass_dataset object

mass_dataset object

mass_dataset object

mass_dataset object

mass_dataset object

mass_dataset object

mass_dataset object

A logical data.frame

A logical data.frame

A logical data.frame

A logical data.frame

A logical data.frame

result

vector object

vector object

vector object

Details

colSums.mass_dataset = function(x, na.rm = FALSE, dims = 1) colSums(x@expression_data, na.rm = na.rm, dims = dims)

rowSums.mass_dataset = function(x, na.rm = FALSE, dims = 1) rowSums(x@expression_data, na.rm = na.rm, dims = dims)

colMeans.mass_dataset = function(x, na.rm = FALSE, dims = 1) colMeans(x@expression_data, na.rm = na.rm, dims = dims)

rowMeans.mass_dataset = function(x, na.rm = FALSE, dims = 1) rowMeans(x@expression_data, na.rm = na.rm, dims = dims)

Author

Xiaotao Shen shenxt1990@outlook.com