geo_pull | R Documentation |
This function allows to extract a specific column from any geometric object
for which all required getters are available and thus reflects the base
function $
.
geo_pull(obj, var, ungroup = FALSE)
obj |
gridded(1) |
var |
character(1) |
ungroup |
logical(1) |
This function searches for var
by first looking in the
groups, then the features and finally the points of obj
. This
results always in an output that is limited to the unique cases of
var
. In case you want the explicit values of, for instance,
fid
in obj@points
, you have to extract points and then use
pull
on the result.
vector of the column specified in var
.
Other geometry tools:
geo_filter()
,
geo_locate()
,
geo_reflect()
,
geo_rotate()
,
geo_scale()
,
geo_skew()
,
geo_stretch()
,
geo_translate()
# pull values from a geom (there are two features, thus two values) ...
geo_pull(obj = gtGeoms$point, var = "fid")
# pull from a Raster* with RAT
geo_pull(obj = gtGeoms$grid, var = "cover")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.