Skip to contents

All functions

Ops(<sfg>) Ops(<sfc>)
Arithmetic operators for simple feature geometries
aggregate(<sf>)
aggregate an sf object
rbind(<sf>) cbind(<sf>) st_bind_cols()
Bind rows (features) of sf objects
as_Spatial()
Methods to coerce simple features to Spatial* and Spatial*DataFrame objects
dbDataType(<PostgreSQLConnection>,<sf>) dbDataType(<DBIObject>,<sf>)
Determine database type for R vector
dbWriteTable(<PostgreSQLConnection>,<character>,<sf>) dbWriteTable(<DBIObject>,<character>,<sf>)
Write sf object to Database
db_drivers
Drivers for which update should be TRUE by default
extension_map
Map extension to driver
gdal_addo()
Add or remove overviews to/from a raster image
gdal_utils()
Native interface to gdal utils
st_intersection() st_difference() st_sym_difference() st_snap()
Geometric operations on pairs of simple feature geometry sets
st_intersects() st_disjoint() st_touches() st_crosses() st_within() st_contains() st_contains_properly() st_overlaps() st_equals() st_covers() st_covered_by() st_equals_exact() st_is_within_distance()
Geometric binary predicates on pairs of simple feature geometry sets
st_combine() st_union()
Combine or union feature geometries
st_area() st_length() st_perimeter() st_distance()
Compute geometric measurements
st_dimension() st_is_simple() st_is_empty()
Dimension, simplicity, validity or is_empty queries on simple feature geometries
st_buffer() st_boundary() st_convex_hull() st_concave_hull() st_simplify() st_triangulate() st_triangulate_constrained() st_inscribed_circle() st_minimum_rotated_rectangle() st_voronoi() st_polygonize() st_line_merge() st_centroid() st_point_on_surface() st_reverse() st_node() st_segmentize() st_exterior_ring()
Geometric unary operations on simple feature geometry sets
st_interpolate_aw()
Areal-weighted interpolation of polygon data
is_driver_available()
Check if driver is available
is_driver_can()
Check if a driver can perform an action
is_geometry_column()
Check if the columns could be of a coercable type for sf
merge(<sf>)
merge method for sf and data.frame object
nc
North Carolina SIDS data
plot(<sf>) get_key_pos() plot(<sfc_POINT>) plot(<sfc_MULTIPOINT>) plot(<sfc_LINESTRING>) plot(<sfc_CIRCULARSTRING>) plot(<sfc_MULTILINESTRING>) plot(<sfc_POLYGON>) plot(<sfc_MULTIPOLYGON>) plot(<sfc_GEOMETRYCOLLECTION>) plot(<sfc_GEOMETRY>) plot(<sfg>) plot_sf() sf.colors() text(<sf>) text(<sfc>) points(<sf>) points(<sfc>)
plot sf object
prefix_map
Map prefix to driver
sf_proj_search_paths() sf_proj_network() sf_proj_pipelines()
Manage PROJ settings
rawToHex()
Convert raw vector(s) into hexadecimal character string(s)
sf_use_s2() st_as_s2()
functions for spherical geometry, using s2 package
st_sf() `[`(<sf>) print(<sf>)
Create sf object
sf_extSoftVersion()
Provide the external dependencies versions of the libraries linked to sf
sf_add_proj_units() sf_project()
directly transform a set of coordinates
st_sfc() `[`(<sfc>)
Create simple feature geometry list column
print(<sgbp>) t(<sgbp>) as.matrix(<sgbp>) dim(<sgbp>) Ops(<sgbp>) as.data.frame(<sgbp>)
Methods for dealing with sparse geometry binary predicate lists
st_point() st_multipoint() st_linestring() st_polygon() st_multilinestring() st_multipolygon() st_geometrycollection() print(<sfg>) head(<sfg>) format(<sfg>) c(<sfg>) as.matrix(<sfg>)
Create simple feature from a numeric vector, matrix or list
NA_agr_ st_agr() `st_agr<-`() st_set_agr()
get or set relation_to_geometry attribute of an sf object
st_as_binary()
Convert sfc object to an WKB object
st_as_grob()
Convert sf* object to a grob
st_as_sf()
Convert foreign object to an sf object
st_as_sfc()
Convert foreign geometry object to an sfc object
st_as_text()
Return Well-known Text representation of simple feature geometry or coordinate reference system
is.na(<bbox>) st_bbox() NA_bbox_ FULL_bbox_ format(<bbox>)
Return bounding of a simple feature or simple feature set
st_break_antimeridian()
Break antimeridian for plotting not centred on Greenwich
st_cast()
Cast geometry to another type: either simplify, or cast explicitly
st_cast_sfc_default()
Coerce geometry to MULTI* geometry
st_collection_extract()
Given an object with geometries of type GEOMETRY or GEOMETRYCOLLECTION, return an object consisting only of elements of the specified type.
st_coordinates()
retrieve coordinates in matrix form
st_crop()
crop an sf object to a specific rectangle
st_crs() `st_crs<-`() st_set_crs() NA_crs_ is.na(<crs>) `$`(<crs>) format(<crs>) st_axis_order()
Retrieve coordinate reference system from object
st_drivers()
Get GDAL drivers
st_geometry() `st_geometry<-`() st_set_geometry() st_drop_geometry()
Get, set, replace or rename geometry from an sf object
st_geometry_type()
Return geometry type of an object
st_graticule()
Compute graticules and their parameters
st_is()
test equality between the geometry type and a class or set of classes
st_is_full()
predicate whether a geometry is equal to a POLYGON FULL
st_is_longlat()
Assert whether simple feature coordinates are longlat degrees
st_jitter()
jitter geometries
st_join() st_filter()
spatial join, spatial filter
st_layers()
Return properties of layers in a datasource
st_line_project() st_line_interpolate()
Project point on linestring, interpolate along a linestring
st_line_sample()
Sample points on a linear geometry
is.na(<m_range>) st_m_range() NA_m_range_
Return 'm' range of a simple feature or simple feature set
st_make_grid()
Create a regular tesselation over the bounding box of an sf or sfc object
st_nearest_feature()
get index of nearest feature
st_nearest_points()
get nearest points between pairs of geometries
st_normalize()
Normalize simple features
st_precision() st_set_precision() `st_precision<-`()
Get precision
st_read() read_sf()
Read simple features or layers from file or database
st_relate()
Compute DE9-IM relation between pairs of geometries, or match it to a given pattern
st_sample()
sample points on or in (sets of) spatial features
st_shift_longitude()
Shift or re-center geographical coordinates for a Pacific view
st_can_transform() st_transform() st_wrap_dateline() sf_proj_info()
Transform or convert coordinates of simple feature
st_viewport()
Create viewport from sf, sfc or sfg object
st_write() write_sf() st_delete()
Write simple features object to file or database
is.na(<z_range>) st_z_range() NA_z_range_
Return 'z' range of a simple feature or simple feature set
st_zm()
Drop or add Z and/or M dimensions from feature geometries
summary(<sfc>)
Summarize simple feature column
type_sum.sfc() obj_sum.sfc() pillar_shaft.sfc()
Summarize simple feature type for tibble
filter.sf() arrange.sf() group_by.sf() ungroup.sf() rowwise.sf() mutate.sf() transmute.sf() select.sf() rename.sf() rename_with.sf() slice.sf() summarise.sf() distinct.sf() gather.sf() pivot_longer.sf() pivot_wider.sf() spread.sf() sample_n.sf() sample_frac.sf() group_split.sf() nest.sf() separate.sf() separate_rows.sf() unite.sf() unnest.sf() drop_na.sf() inner_join.sf() left_join.sf() right_join.sf() full_join.sf() semi_join.sf() anti_join.sf()
Tidyverse methods for sf objects
transform(<sf>)
transform method for sf objects
st_is_valid() st_make_valid()
Check validity or make an invalid geometry valid
vec_ptype2.sfc() vec_cast.sfc()
vctrs methods for sf objects