transformData: Apply transforms to a data set.

Description Usage Arguments Details Value See Also

View source: R/transforms.lib.R

Description

The function looks for traits in colulms of input data frame, call transformTrait function per trait, and rename the traits. By default, the name of a transformed trait is updated to one with a prefixed given in transform.prefix argument (the default value is "tr_"). Such renaming is assumed to make the user aware that the trait is transformed.

Usage

1
transformData(transforms, data, transform.prefix = "tr_", ...)

Arguments

transforms

A named character vector of transforms, where traits are given in the names of the vector.

data

A matrix or a data.frame, where the column names represent the names of traits.

transform.prefix

A character vector, that is a prefix to be added to the name of transformed trait. The default value is "tr_".

...

Additional parameters to be passed to transformTrait function called inside of transformData. For example, it might be a parameter log.base for transformTrait function in the case transform is equal to "log".

Details

This function is internally called in solarPolygenic if transforms argument is specified. In this case of the polygenic analysis, the transform operation is invisible to the user. However, it is recommended to manually transform traits in other linkage and association analyses.

Value

A matrix or a data.frame of the transformed data.

See Also

availableTransforms, transformTrait


solarius documentation built on May 2, 2019, 2:43 a.m.