Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR R

calculated defualt values in R function parameters

fun <- function(x,y=getOption('fun.y','initialDefault')){# or getOption('pkg.fun.y',defaultValue)
    blah blah blah
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #calculated #defualt #values #R #function #parameters
ADD COMMENT
Topic
Name
5+1 =