format_normalize | R Documentation |
Subtracting mean of the specified period from every value in the variable that's being transformed, i.e. mean of the baseline period
format_normalize(.data, ID_var, variable, phase_var = Experiment_period, phase_value = Baseline, add = 0)
.data |
a tibble |
ID_var |
the ID variable, for grouping |
variable |
name of the variable that is going to be transformed |
phase_var |
name of the variable containing experimental phases, defaults to Experiment_period |
phase_value |
name of the value of phase_var which you normalizes towards, defaults to Baseline |
add |
Optional argument, a number to add to every value if you want the mean to be something other than 0. Defaults to 0. |
a tibble, where one variable is transformed
Normalizing variable bodytemperature to the Baseline period, contained in variable Experiment_period in data set d d %>% format_normalize(variable = bodytemperature, ID_var = Id, phase_var = Experiment_period, phase_value = Baseline, add = 0)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.