col_sum: Title Calculate column value sum of the every row

View source: R/col_sum.R

col_sumR Documentation

Title Calculate column value sum of the every row

Description

Title Calculate column value sum of the every row

Usage

col_sum(data)

Arguments

data

must be a data.frame or matrix

Value

vcxtor

Examples

y <- matrix( rpois(1000, lambda=5), nrow=200 )
col_sum(y)
n = dim(y)
colnames(y) = paste(rep("sample",n[[2]]),1:n[[2]])
rownames(y) = paste(rep("gene",n[[1]]),1:n[[1]])
y = as.data.frame(y)
col_sum(y)

wangjiaxuan666/fixbatch documentation built on Jan. 25, 2024, 4:39 p.m.