This is a simple function that returns a dataframe in which the person-level standard deviation of any input variables has been calculated. Output variables will be named 'input_variable_sd'
1 |
data |
The input dataset |
variables |
A character vector of input variables e.g. c('negemo', 'posemo'). |
person_id |
The grouping variable to calculate your mean at - this should be your person id variable. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.