Description Usage Arguments Examples
View source: R/FUNCTION_transformData.R
This function applies various data transformations to a data frame
1 | transformData(x, type = "none", cols = NULL, zero.convert = NA)
|
x |
a data frame with at least 1 numeric column |
type |
one of "none","log" ,"z-score","perc_rank" |
cols |
vector with names of columns to be transformed. Use NULL to transform all numeric columns. |
zero.convert |
replace 0 with this value if required by the transformation (e.g. log) |
1 2 3 4 5 | iris.transform <- transformData(iris,
type="log",
cols="Sepal.Length",
zero.convert = NA)
head(iris.transform)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.