ExamVeda
Login
Home
11
How do you check the structure of 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
12
In R, what is the purpose of the names() function?
Discuss
Answer & Solution
Answer: Option C
No explanation is given for this question. Let's Discuss on Board
13
What function is used to convert a factor to a character vector in R?
Discuss
Answer & Solution
Answer: Option B
No explanation is given for this question. Let's Discuss on Board
14
How is a data frame column named Age selected in R?
Discuss
Answer & Solution
Answer: Option B
No explanation is given for this question. Let's Discuss on Board
15
In R, how do you add a new column named Height to a data frame named my_data?
Discuss
Answer & Solution
Answer: Option A
No explanation is given for this question. Let's Discuss on Board
16
How do you create a character vector with the elements "apple", "orange", and "banana" in R?
Discuss
Answer & Solution
Answer: Option A
No explanation is given for this question. Let's Discuss on Board
17
What does the str() function do in R?
Discuss
Answer & Solution
Answer: Option A
No explanation is given for this question. Let's Discuss on Board
18
In R, how do you create a data frame named my_df with columns Name and Age?
Discuss
Answer & Solution
Answer: Option A
No explanation is given for this question. Let's Discuss on Board
19
What is the result of length(unique(c(1, 2, 3, 1, 2))) in R?
Discuss
Answer & Solution
Answer: Option A
No explanation is given for this question. Let's Discuss on Board
20
In R, how is a factor converted to a numeric vector using the as.numeric() function?
Discuss
Answer & Solution
Answer: Option C
No explanation is given for this question. Let's Discuss on Board