Description Usage Arguments Value See Also Examples
Get the mean and standard deviation for centred and standardised variables.
1 | conversion_terms(data, centre = FALSE, standardise = FALSE, dat = NULL)
|
data |
the data frame or list of data |
centre |
a logical scalar or a character vector of the variables to get the mean for |
standardise |
a logical scalar or a character vector of the variables to get the mean and standard deviation for |
dat |
the data frame or data list to convert. If dat is NULL the dataset passed as the data argument is converted |
A matrix of the means and standard deviations for the centred and standardised variables
1 2 3 4 5 6 7 8 | data <- data.frame(numeric = 1:10 + 0.1, integer = 1:10,
factor = factor(1:10), date = as.Date("2000-01-01") + 1:10,
posixt = ISOdate(2000,1,1) + 1:10)
conversion_terms(data)
conversion_terms(data, centre = TRUE)
conversion_terms(data, standardise = TRUE)
conversion_terms(data, standardise = "date")
conversion_terms(data, centre = "date", standardise = "date")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.