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)
]

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q
A
How well did you know this?
1
Not at all
2
3
4
5
Perfectly