sumtop: sums top rows of matrix uses median of row to determine row...

Description Usage Arguments Examples

View source: R/sumtop.R

Description

sums top rows of matrix uses median of row to determine row order

Usage

1
sumtop(x, top = 3)

Arguments

x

a matrix

top

how many to rows to sum (default 3)

Examples

1
2
3
tmp <- rbind(rep(1,times = 4), rep(2,times=4), rep(3,times=4), rep(4,times=4))
res <- sumtop(tmp)
stopifnot(res == c(9,9,9,9))

quantable documentation built on May 2, 2019, 4:05 p.m.

Related to sumtop in quantable...