indivsInfo_AddPointGeometries: Add point geometries to a list dataframes from DisMELS output

View source: R/indivsInfo_AddPointGeometries.R

indivsInfo_AddPointGeometriesR Documentation

Add point geometries to a list dataframes from DisMELS output

Description

Function to add point geometries to a list dataframes from DisMELS output

Usage

indivsInfo_AddPointGeometries(
  dfrs,
  xCol = "horizPos1",
  yCol = "horizPos2",
  crs = wtsGIS::get_crs(4326),
  wrapDateline = TRUE
)

Arguments

dfrs

- list of dataframes, by typeName, or a single dataframe, with DisMELS IBM results

xCol

- name of column with x-axis location

yCol

- name of column with y-axis location

crs

- coordinate reference system (object that can be converted to an sf::crs object; default is WGS84)

wrapDateline

- flag (T/F) to use 0 to 360 rather than -180 to 180 range for longitudes

Details

Uses package wtsGIS. For each sf dataset, the point geometries are in column "geom". Other columns are copied from the associated input dataframes.

Value

a list of sf (dataset) objects, by typeName, each with a column ("geom") of class sfc_POINT, or a single sf dataset with a column ("geom") of class sfc_POINT.


wStockhausen/rDisMELS documentation built on March 27, 2022, 1 a.m.