Examveda

Which of the following extracts first element from the following R list?
> x <- list(foo = 1:4, bar = 0.6)

A. x[[1]]

B. x[1]

C. x[[0]]

D. x[0]

Answer: Option A


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

Join The Discussion

Related Questions on Data Structures in R Programming