count_digits | R Documentation |
The 'count_digits()' function takes a numeric column of a data frame and counts the number of times that each digit occurs in the first decimal place.
count_digits(data, variable, group = NULL, decimal_place = 1)
data |
A data frame |
variable |
A numeric variable that includes the first decimal place. |
group |
A second variable used to group the primary variable such that average frequency is calculated separately for each group. |
decimal_place |
The decimal place for which digits are counted. The default is set to one but any place may be specified by numeric rank, i.e. "1" for the 1st decimal (tenths), "2" for the 2nd decimal (hundreds), etc. |
A tibble
count_digits(simulated_normal, obs, group)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.