center_standard | R Documentation |
This function centers or standardizes a vector of variables, specify id if the data is longitudinal(for example, educyrs in EAS longitudinal data)
center_standard(dat, vars_vec, center = T, standard = F, id = NULL)
dat |
A tibble or dataframe of the data |
vars_vec |
A character vector of variables to center or standardize |
center |
logical, T if you want to center the variables, default is T |
standard |
logical, T if you want to standardize the variables, default is F |
id |
A character of the id column name, optional |
A tibble with centered or standardized variables
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.