View source: R/scaleSSsToMax.R
scaleSSsToMax | R Documentation |
Function to scale sample sizes, with a maximum allowed value.
scaleSSsToMax(dfrSS, colSS = "ss", sclSS = 1, maxSS = 200)
dfrSS |
- dataframe with sample sizes |
colSS |
- name of column with sample sizes |
sclSS |
- sample size to scale by |
maxSS |
- max output sample size allowed |
The sample sizes in column colSS
are scaled such that
dfrSS[[colSS]] = min(maxSS,maxSS/sclSS * dfrSS[[colSS]])
copy of input dataframe, but with scaled sampled sizes in column colSS
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.