Vector v is c(1,2,3,4) and list x is list(5:8), what is the output of v*x[[1]]?
Answer / Mukul Mishra
The output of v*x[[1]] will be a numeric vector with length 4 containing the elements: 10, 16, 22, 30. This is because element [[1]] of list x is 5 and the operation v*5 results in the first vector multiplied by 5.
| Is This Answer Correct ? | 0 Yes | 0 No |
Why the function anova()?
Why is library() function used in r?
how would you build a scatter-plot using plotly?
Why is R important for data science?
What are the steps to build and evaluate a linear regression model in r?
How to construct a new s3 class?
What is logistic regression?
Explain how R commands are written?
What is a random forest? How do you build and evaluate a random forest in r?
What are Descriptive analysis methods in R?
How many control statements are present in r?
Write a custom function in R?