Description Usage Arguments Value
A group of functions to subset rows from a dataframe
topvar: subset top p
topvar2: subset rows with at least thres variance.
topvar3: subset top n rows by variance.
NOTE: for topvars, rows with zero sum are automatically removed
subset_nonzero: subset rows with at least p
subset_nonzero2: subset rows with at least n non-zero numbers
subset_rowname: Subset one dataframe according to another, by rownames. Return df has same order as the reference df
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)
|
df |
numeric dataframe |
p |
percentage, 0-100 |
v |
method to calculate the variance ( |
thres |
a threshold of variance for the cutoff |
n |
integer |
dataframe
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.