Learn R Programming

expirest (version 0.1.5)

get_variable_list: Listing of variable names

Description

The function get_variable_list() makes a list of the (original) and, if applicable, the transformed variable names.

Usage

get_variable_list(response_vbl, time_vbl, batch_vbl, xform = c("no", "no"))

Value

A list with the variable names. If the data have been transformed, the list element names of the original variables have the suffix ".orig".

Arguments

response_vbl

A character string specifying the response variable name that must be a column of data.

time_vbl

A character string specifying the time variable name that must be a column of data.

batch_vbl

A character string specifying the column in data with the grouping information (i.e. a factorial variable) for the differentiation of the observations of the different batches.

xform

A vector of two character strings specifying the transformation of the response and the time variable. The default is “no” transformation, i.e. c("no", "no"), where the first element specifies the transformation of the \(x\) variable and the second element the transformation of the \(y\) variable. Valid alternatives for \(x\) and/or \(y\) variable transformation are "log" (natural logarithm), "sqrt" (square root) and "sq" (square).

Details

The function get_variable_list() makes a list of the variable names. If data have been transformed, the list comprises the original variable name(s) (with suffix .orig in the corresponding list element names) and the transformed variable name(s).