ExamVeda
Login
Home
21
How do you extract the first row of a data frame named my_data in R?
Discuss
Answer & Solution
Answer: Option A
No explanation is given for this question. Let's Discuss on Board
22
In R, what is the purpose of the table() function?
Discuss
Answer & Solution
Answer: Option A
No explanation is given for this question. Let's Discuss on Board
23
How do you remove a column named Income from a data frame named my_data in R?
Discuss
Answer & Solution
Answer: Option B
No explanation is given for this question. Let's Discuss on Board
24
In R, what does the unlist() function do?
Discuss
Answer & Solution
Answer: Option A
No explanation is given for this question. Let's Discuss on Board
25
How is a character string converted to a numeric vector in R using the as.numeric() function?
Discuss
Answer & Solution
Answer: Option A
No explanation is given for this question. Let's Discuss on Board
26
In R, what is the purpose of the subset() function?
Discuss
Answer & Solution
Answer: Option A
No explanation is given for this question. Let's Discuss on Board
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?
Discuss
Answer & Solution
Answer: Option B
No explanation is given for this question. Let's Discuss on Board
28
What function is used to concatenate two vectors in R?
Discuss
Answer & Solution
Answer: Option C
No explanation is given for this question. Let's Discuss on Board
29
In R, what does the slice() function do?
Discuss
Answer & Solution
Answer: Option A
No explanation is given for this question. Let's Discuss on Board
30
How do you create a named numeric vector with values 1, 2, and 3 named "one", "two", and "three" in R?
Discuss
Answer & Solution
Answer: Option D
No explanation is given for this question. Let's Discuss on Board