[ top | up ]

Flatten Lists

Syntax

unlist(x, recursive=TRUE, use.names=TRUE)

Description

Given a list structure x, unlist produces a vector which contains all the atomic components which occur in x. If recursive=FALSE, the function will not recurse beyond the first level items in x.

By default, unlist tries to retain the naming information present in x. If use.names=FALSE all naming information is dropped.

See Also

c.