Examveda
Examveda

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)

C. my_list(1, "hello", TRUE)

D. list(my_list = c(1, "hello", TRUE))

Answer: Option B


This Question Belongs to R Programming >> Data Structures In R Programming

Join The Discussion

Related Questions on Data Structures in R Programming