Question: Q 1 . Define data structures in R with suitable examples Q 2 . Which of the following are vectors? A . V 1 =

Q1. Define data structures in R with suitable examples
Q2.Which of the following are vectors?
A. V1= c(TRUE, FALSE,FALSE, TRUE)
B. V1= c(45L,65L,35L,67L,11L)
C. V1= c(34.5,23.45,5.416187)
D. V1=c(3+7i,8i,2+3i)
E. All 4 are vectors
Q3. Dataframe can ONLY hold objects of the same class. Choose the correct option
A. TRUE
B. FALSE
Q4. Consider the following R command and give the correct interpretation
> array1[-(2:4),,]
Choose the correct option from below
A. Access all rows from 2nd-4th column of each matrix
B. Access elements from all rows EXCEPT2nd-4th row from each matrix
C. Access elements from all rows EXCEPT from 2nd-4th column from each matrix
D. Access all elements of 2nd & 4th matrices
Q5. Factors are R Objects that help you Create Categorical variables
A. TRUE
B. FALSE
Q6. Which of the following functions gives thedescriptive statistics of a dataframe-mtcars
A. str(mtcars)
B. summary(mtcars)
C. append(mtcars)
D. None of the above

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!