powered by
Create a new variable that is the nth power of the selected variable
cv.powers(dataframe, var, n, range)
:a data frame
:the variable selected
:number of new variables created
:the range of power
# NOT RUN { cv.powers(mtcars,"wt",5,c(1, 2)) # }
Run the code above in your browser using DataLab