Question
y<-0:5
vector(y)
Y[3]
a.
Error in vector(y): invalid ‘mode’ argument
b.
1
c.
4
d.
3
Posted under R Programming
Engage with the Community - Add Your Comment
Confused About the Answer? Ask for Details Here.
Know the Explanation? Add it Here.
Q. What will be the output of the following R program?
Similar Questions
Discover Related MCQs
Q. In R language, a vector is defined that it can only contain objects of the ________
View solution
Q. A list is represented as a vector but can contain objects of ___________
View solution
Q. How can we define ‘undefined value’ in R language?
View solution
Q. What is NaN called?
View solution
Q. How can we define ‘infinity’ in R language?
View solution
Q. Which one of the following is not a basic datatype?
View solution
Q. How do you create an integer suppose 5 in R?
View solution
Q. The dimension attribute is itself an integer vector of length _______
View solution
Q. Matrices can be created by row-binding with the help of the following function.
View solution
Q. What is the function used to test objects (returns a logical operator) if they are NA?
View solution
Q. What is the function used to test objects (returns a logical operator) if they are NaN?
View solution
Q. What is the function to set column names for a matrix?
View solution
Suggested Topics
Are you eager to expand your knowledge beyond R Programming? We've curated a selection of related categories that you might find intriguing.
Click on the categories below to discover a wealth of MCQs and enrich your understanding of Computer Science. Happy exploring!