50% off | Unlimited Data & AI Learning
Get 50% off unlimited learning

PMmisc (version 0.1.2)

cv.logs: Create logarithm with a random base

Description

Create a new variable that is the logarithm of the selected variable with the base of a random number

Usage

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

Arguments

dataframe

:a data frame

var

:the variable selected

n

:number of new variables created

range

:the range of base

Examples

Run this code
# NOT RUN {
cv.logs(mtcars,"wt",5,c(1, 2))
# }

Run the code above in your browser using DataLab