Chapter 3 Flashcards
1
Q
How to define a new function in R?
A
functionName <- function(param 1, param 2 = “default value”)
[
y <- c(param 1, param 2)
return (y)
]
2
Q
A
How to define a new function in R?
functionName <- function(param 1, param 2 = “default value”)
[
y <- c(param 1, param 2)
return (y)
]