trfm_auto: Takes predictions from model object(s) and and combines it...

Description Usage Arguments Value Examples

View source: R/func_trfm_auto_2.r

Description

Takes predictions from model object(s) and and combines it with actual values This function takes a vector of strings that represent the model object names

Usage

1
2
trfm_auto(trfm_df, data_df, variable_col, min_col, max_col, zero_value_col,
  missing_col, transformation_col, keep_col)

Arguments

trfm_df

The dataframe or datatable that contains the information for the transformations (i.e. values for the trfm() function)

data_df

The dataframe or datatable that contains the data that needs to be transformed

variable_col

The name of the column that holds the variable names for which the data need to be transformed. Default is 'variable'

min_col

The name of the column that holds the minimum values for the trfm() function. Default is 'min'

max_col

The name of the column that holds the maximum values for the trfm() function. Default is 'max'

zero_value_col

The name of the column that holds the zero-value for the trfm() function. Default is 'zero_value'

missing_col

The name of the column that holds the missing value for the trfm() function. Default is 'missing'

transformation_col

The name of the column that holds the transformation indicator. Default is 'transformation'. Key: 0 = no transformation; 1 = log(); 2 = sqrt()

keep_col

The name of the column that holds the 'y' or 'n' to keep a certain variable. Default is 'keep'

Value

trfm_auto() return a dataframe of the original data and the appended transformed data using trfm() and the parameters provided

Examples

1
2
3
4
library(predict2)
data(trfm_data)
data(data_raw)
trfm_example = trfm_auto(trfm_df = trfm_data, data_df = data_raw)

bioticinteractions/predict2 documentation built on May 28, 2019, 7:12 p.m.