View source: R/rows.above.count.R
rows.above.count | R Documentation |
Alias for count.above()
rows.above.count(
df,
benchmarks = "mean",
benchnames = "cutoff",
or.tied = FALSE,
below = FALSE,
wts = 1,
na.rm = TRUE
)
df |
Data.frame or matrix, required. |
benchmarks |
Default is 'mean' but otherwise this must be a number or numeric vector of thresholds to compare values to. |
benchnames |
Default is 'cutoff' and this string is used to create colnames for the results, such as above.cutoff.for.field1 |
or.tied |
Logical, FALSE by default, reporting on those > cutoff. But, if or.tied=TRUE, this reports on those >= cutoff. |
below |
Logical, FALSE by default, which counts how many are above cutoff (or tied if or.tied). If TRUE, counts how many are below (or tied with) cutoff. |
wts |
Number or vector, default is 1. Length must be a factor of number of rows in df, so |
na.rm |
Logical value, optional, TRUE by default. Defines whether NA values should be removed first. Otherwise result will be NA when any NA is in a col. |
Returns a vector of numbers of length equal to number of columns in df.
count.above()
pct.above()
pct.below()
to see, for each column, the count or percent of rows that have values above or below a cutoff.
cols.above.count()
cols.above.which()
cols.above.pct()
to see, for each row, the count or which or fraction of columns with numbers at/above/below cutoff.
colcounter_summary()
colcounter_summary_cum()
colcounter_summary_pct()
colcounter_summary_cum_pct()
tablefixed()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.