Learn R Programming

loon (version 1.4.3)

spunlist: Create a flat list of polygon specifications from the list of sp components returned by spAsList

Description

spunlist is a simple helper function taking the output from spAsList. It is a helper function that should rarely be called directly by the user. It is not the same as the base unlist.

Usage

spunlist(x)

Value

An appropriately flattened list of the relevant components of the spatial data object.

Arguments

x

An list spatial data object.

See Also

spAsList

Examples

Run this code

a <- list(list(x=1:2, y=1:2),
          list(list(x=1:3, y=1:3),
               list(x=1:4, y=1:4)))
spunlist(a)

# Compare to
unlist(a, recursive=TRUE)
# or to
unlist(a, recursive=FALSE)

Run the code above in your browser using DataLab