Home
Recent Q&A
Java
Cloud
JavaScript
Python
SQL
PHP
HTML
C++
Data Science
DBMS
Devops
Hadoop
Machine Learning
Azure
Blockchain
Devops
Ask a Question
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).
Home
R Language
There is a function fn(a, b, c, d, e) a + b * c - d / e. Write the code to call fn on the vector...
asked
Jul 28, 2019
in
R Language
by
Aarav2017
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).
#r-language
#r-programming
#r-course
#r-tutorial
#r-question-answer
#r-interview-question
#r-basics
#r-test
#what-is-r
#learn-r
Please
log in
or
register
to answer this question.
1
Answer
0
votes
answered
Jul 28, 2019
by
SakshiSharma
do.call (fn, as.list(c (1, 2, 3, 4, 5)))
...