View source: R/calculate_percentiles.R
| calculate_percentiles | R Documentation |
Calculate percentiles for values in a data.frame
calculate_percentiles(data, value_col)
data |
A data.frame |
value_col |
character name of column containing values |
A vector of numerics with percentile values of length of nrow(data)
Peter Marquardt
data <- data.frame('values' = 100:1, 'group' = rep(c('A', 'B', 'C', 'D'), 25))
calculate_percentiles(data, 'values')
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.