cv.powers {YRmisc} | R Documentation |
Create a new variable that is the nth power of the selected variable
cv.powers(dataframe, var, n, range)
dataframe |
:a data frame |
var |
:the variable selected |
n |
:number of new variables created |
range |
:the range of power |
cv.powers(mtcars,"wt",5,c(1, 2))