conversion_terms: Conversion Terms

Description Usage Arguments Value See Also Examples

Description

Get the mean and standard deviation for centred and standardised variables.

Usage

1
conversion_terms(data, centre = FALSE, standardise = FALSE, dat = NULL)

Arguments

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

Value

A matrix of the means and standard deviations for the centred and standardised variables

See Also

convert_data

Examples

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")

poissonconsulting/datalist documentation built on Feb. 18, 2021, 10:24 p.m.