Vidyalelo
R Programming · Q3

Data Structures in R Programming

Programming · R Programming · question 3

Q3

In R, how do you create a list named my_list with three elements: 1, "hello", and TRUE?

A.
my_list <- c(1, "hello", TRUE)
B.
my_list = list(1, "hello", TRUE)
Answer
C.
my_list(1, "hello", TRUE)
D.
list(my_list = c(1, "hello", TRUE))

Answer: Option B

Solution

Answer: Option B
No explanation is given for this question Let's Discuss on Board