Description Usage Arguments Details Value See Also
View source: R/transforms.lib.R
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.
1 | transformData(transforms, data, transform.prefix = "tr_", ...)
|
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 |
... |
Additional parameters to be passed to |
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.
A matrix or a data.frame of the transformed data.
availableTransforms
, transformTrait
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.