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

Description Usage Arguments Value

View source: R/func_trfm.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 trfm <- function(df_variable, missing, min, max, zero_value, transformation)

Usage

1
trfm(df_variable, missing, min, max, zero_value, transformation)

Arguments

df_variable

A vector that contains the original values that need to be transformed

missing

The value that should replace any missing values in the dataset

min

The minimum value that a given variable should take; any value below the minimum will be set equal to the min value

max

The maximum value that a given variable should take; any value above the maximum will be set equal to the max value

zero_value

This is the value that any value of 0 should be.

transformation

This is an integer value for corresponding to one of three transformation: 0 == no transformation, 1 == log(), 2 == sqrt()

Value

trfm() will a vector of transformed values


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