setMinToBase: Moves the min value of a varible in a decomposition to the...

Description Usage Arguments Value Author(s) Examples

View source: R/removeInterceptBehavior.R

Description

This function Sets the min value of a varible in a decomposition to the intercept and removes it from the varible

Usage

1
setMinToBase(decomp, baseName, varsToBeShifted, removeZeros = FALSE)

Arguments

decomp

The decomposition which should be fixed

baseName

The intercept column in the decomp as a string

varsToBeShifted

The colmuns to be shifted

removeZeros

Logic, If true the function will ignore zeros for the columns that are shifted

Value

A fixed decomposition

Author(s)

Johan Gudmundsson, [email protected]

Examples

1
setMinToBase(decomp, baseName = 'allOnes', varsToBeShifted = c('trend', 'econmic'))

johan-gudmundsson/JGTools documentation built on June 20, 2017, 8:12 a.m.