Description Usage Arguments Examples
Returns the measures of location such as range, variance and standard deviation.
1 | ds_measures_variation(data, ..., decimals = 2)
|
data |
A |
... |
Column(s) in |
decimals |
An option to specify the exact number of decimal places to use. The default number of decimal places is 2. |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 | # single column
ds_measures_variation(mtcarz, mpg)
# multiple columns
ds_measures_variation(mtcarz, mpg, disp)
# all columns
ds_measures_variation(mtcarz)
# vector
ds_measures_variation(mtcarz$mpg)
# vectors of different length
disp <- mtcarz$disp[1:10]
ds_measures_variation(mtcarz$mpg, disp)
# decimal places
ds_measures_variation(mtcarz, disp, hp, decimals = 3)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.