transformData: transformData

Description Usage Arguments Examples

View source: R/FUNCTION_transformData.R

Description

This function applies various data transformations to a data frame

Usage

1
transformData(x, type = "none", cols = NULL, zero.convert = NA)

Arguments

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)

Examples

1
2
3
4
5
iris.transform <- transformData(iris,
   type="log",
   cols="Sepal.Length",
   zero.convert = NA)
head(iris.transform)

SOLV-Code/SPATFunctions-Package documentation built on April 25, 2020, 12:59 a.m.