subsetRows: Subset rows from a dataframe by various criteria

Description Usage Arguments Value

Description

A group of functions to subset rows from a dataframe

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
topvar(df, p, v = cv)

topvar2(df, thres, v = cv)

topvar3(df, n, v = cv)

subset_nonzero(df, p)

subset_nonzero2(df, n)

subset_rowname(x, y, order = T)

Arguments

df

numeric dataframe

p

percentage, 0-100

v

method to calculate the variance (cv, mad, mean,etc)

thres

a threshold of variance for the cutoff

n

integer

Value

dataframe


brightchan/cjbmisc documentation built on Nov. 5, 2021, 4:12 p.m.