Learn R Programming

geometr (version 0.2.5)

getPoints: Get the table of point attributes

Description

Get tabular information of the attributes of points (incl. coordinates).

Usage

# S4 method for ANY
getPoints(x, ...)

# S4 method for geom getPoints(x, ...)

# S4 method for Spatial getPoints(x)

# S4 method for sf getPoints(x)

# S4 method for ppp getPoints(x)

# S4 method for Raster getPoints(x)

# S4 method for matrix getPoints(x)

Arguments

x

the object from which to derive the attribute table.

...

subset based on logical predicates defined in terms of the columns in x or a vector of booleans. Multiple conditions are combined with &. Only rows where the condition evaluates to TRUE are kept.

Value

A table of the point attributes of x or an object where the point table has been subsetted.

See Also

Other getters: getCRS(), getExtent(), getFeatures(), getGroups(), getHistory(), getLayer(), getName(), getRes(), getType(), getWindow()

Examples

Run this code
# NOT RUN {
getPoints(x = gtGeoms$polygon)

getPoints(x = gtGeoms$point)

# for a raster object, the @point slot is extracted from its' compact storage
gtGeoms$grid$continuous@point
getPoints(x = gtGeoms$grid$continuous)
# }

Run the code above in your browser using DataLab