Description Usage Arguments Value Examples
View source: R/calculate_standard_deviation.R
Return a vector of standard deviation of specific columns matching a pattern
1 |
df |
A data frame |
pattern |
A string pattern to match |
A vector of standard deviation of specific columns matching a pattern
1 2 3 4 5 6 7 8 | df <- data.frame(
week_payment1 = c(0, 3, 6),
week_payment2 = c(2, 5, 8),
week_payment3 = c(5, 8, 11),
other_column = c(10, 11, 12)
)
calculate_standard_deviation(df, "week_payment")
c(6, 6, 6)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.