+3 votes
in R Language by
There is a function fn(a, b, c, d, e) a + b * c - d / e. Write the code to call fn on the vector c(1,2,3,4,5) such that the output is same as fn(1,2,3,4,5).

1 Answer

0 votes
by
do.call (fn, as.list(c (1, 2, 3, 4, 5)))

Related questions

+1 vote
asked Jul 28, 2019 in R Language by Aarav2017
+2 votes
asked Jul 28, 2019 in R Language by Aarav2017
...