11. How do you check the structure of a data frame named my_data in R?
12. In R, what is the purpose of the names() function?
13. What function is used to convert a factor to a character vector in R?
14. How is a data frame column named Age selected in R?
15. In R, how do you add a new column named Height to a data frame named my_data?
16. How do you create a character vector with the elements "apple", "orange", and "banana" in R?
17. What does the str() function do in R?
18. In R, how do you create a data frame named my_df with columns Name and Age?
19. What is the result of length(unique(c(1, 2, 3, 1, 2))) in R?
20. In R, how is a factor converted to a numeric vector using the as.numeric() function?
Read More Section(Data Structures in R Programming)
Each Section contains maximum 100 MCQs question on Data Structures in R Programming. To get more questions visit other sections.