spunlist {loon}R Documentation

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)

Arguments

x

An list spatial data object.

Value

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

See Also

spAsList

Examples


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)


[Package loon version 1.4.3 Index]