cv.powers {YRmisc}R Documentation

Create nth power variable

Description

Create a new variable that is the nth power of the selected variable

Usage

cv.powers(dataframe, var, n, range)

Arguments

dataframe

:a data frame

var

:the variable selected

n

:number of new variables created

range

:the range of power

Examples

cv.powers(mtcars,"wt",5,c(1, 2))

[Package YRmisc version 0.1.6 Index]