Answers for "calculated defualt values in R function parameters"

R
0

calculated defualt values in R function parameters

fun <- function(x,levels=levels(x)){
    blah blah blah
}
Posted by: Guest on June-19-2020
0

calculated defualt values in R function parameters

fun <- function(x,y=getOption('fun.y','initialDefault')){# or getOption('pkg.fun.y',defaultValue)
    blah blah blah
}
Posted by: Guest on June-19-2020

Browse Popular Code Answers by Language