febr2sf: Create an sf object

View source: R/febr2sf.R

febr2sfR Documentation

Create an sf object

Description

Set spatial coordinates and coordinate reference system (CRS) to a set of soil observations.

Usage

febr2sf(obj)

Arguments

obj

Object of class data.frame downloaded from the Data Repository of the Brazilian Soil using observation().

Details

Create an sf object from the observation ("observacao") table of one or more standardized datasets contained in the FEBR Soil Data Repository, https://www.pedometria.org/febr/.

Value

An object of class sfc_POINT (single soil observation) or sfc_MULTIPOINT (multiple soil observations).

Author(s)

Alessandro Samuel-Rosa alessandrosamuelrosa@gmail.com

References

Pebesma, E., 2018. Simple Features for R: Standardized Support for Spatial Vector Data. The R Journal 10 (1), 439-446, doi: 10.32614/RJ-2018-009

Examples

if (interactive()) {
res <- observation(
  data.set = "ctb0013",
  progress = FALSE, verbose = FALSE)
res <- febr2sf(obj = res)
plot(res["geometry"], axes = TRUE, graticule = TRUE)
}

samuel-rosa/febr-package documentation built on April 20, 2022, 10:31 p.m.