Documente Academic
Documente Profesional
Documente Cultură
f <- function(x, y) {
z <- 3 * x + 4 * y
return(z)
}
f(1, 2)
[1] 11
> f(c(1,2,3), c(5,3,4))
[1] 23 18 25
:
> f(1 3, 4)
[1] 19 22 25
Referencias
• https://en.wikipedia.org/wiki/R_(programming_language)