21. How do you extract the first row of a data frame named my_data in R?
22. In R, what is the purpose of the table() function?
23. How do you remove a column named Income from a data frame named my_data in R?
24. In R, what does the unlist() function do?
25. How is a character string converted to a numeric vector in R using the as.numeric() function?
26. In R, what is the purpose of the subset() function?
27. How do you add a new row to a data frame named my_data with values "Alice" and 28 for columns Name and Age?
28. What function is used to concatenate two vectors in R?
29. In R, what does the slice() function do?
30. How do you create a named numeric vector with values 1, 2, and 3 named "one", "two", and "three" in R?
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.