glottospace {glottospace} | R Documentation |
Make glottodata spatial and generate language polygons from points.
Description
This function takes glottodata (either with or without metadata) and turns it into spatial points or polygons.
Usage
glottospace(glottodata, method = NULL, radius = NULL)
Arguments
glottodata |
A glottodata table, or list of a glottodata table and metadata table(s) |
method |
Interpolation method, either "buffer" or "voronoi" (synonymous with "thiessen") |
radius |
In case interpolation method "buffer", the radius in km. |
Value
A spatial version of glottodata. In case glottodata has metadata, only glottodata will be converted to spatial (but all metadata tables are kept). Object returned as sf object, or a list of which the first element is an sf object, depending on the input.
Examples
glottodata <- glottoget("demodata", meta = TRUE)
glottospacedata <- glottospace(glottodata, method = "voronoi")
[Package glottospace version 0.0.112 Index]