1.

Lists can be coerced with which function?(a) As.lists(b) Has.lists(c) In.lists(d) Co.listsThe question was asked in exam.The query is from Data Types topic in chapter Nuts and Bolts and Getting Data In and Out of R Programming

Answer»

The correct answer is (a) As.lists

To EXPLAIN: Lists are sometimes called generic vectors because the elements of a LIST can be of any type of R object, even lists containing further lists. This property MAKES them fundamentally different from other ATOMIC vectors. Create lists using list() and coerce other objects using as.list().



Discussion

No Comment Found

Related InterviewSolutions