Which Of The Following Is Invalid Assignment #231
Which of the following is invalid assignment?
This multiple choice question (MCQ) is related to the book/course gs gs110 R Language. It can also be found in gs gs110 Nuts and Bolts and Getting Data In and Out - Reading Datasets - Quiz No.2.
Which of the following is invalid assignment?
> x <- list("Los Angeles" = 1, Boston = 2, London = 3)
> names(x) <- c("New York", "Seattle", "Los Angeles")
> name(x) <- c("New York", "Seattle", "Los Angeles")
> names(x) <- c("New York", "Los Angeles", "Los Angeles")