set_site: set Site Information for Fossil Sites

View source: R/set_site.R

set_siteR Documentation

set Site Information for Fossil Sites

Description

set Site Information for Fossil Sites

Usage

set_site(
  x = NA,
  siteid = NA_integer_,
  sitename = NA_character_,
  geography = st_as_sf(st_sfc()),
  altitude = NA_integer_,
  geopolitical = list(),
  area = NA_integer_,
  notes = NA_character_,
  description = NA_character_,
  collunits = new("collunits")
)

Arguments

x

Object to be set as a site

siteid

The unique site id for a site. If this site is new to Neotoma then leave the ID as NA (the default).

sitename

Actual site name as a character string.

geography

An sf object representing the site location, either as a polygon or point.

altitude

altitude/elevation of the site.

geopolitical

The geopolitical unit in which the site is located.

area

The area of the site or depositional basin in ha. Can be calculated from the polygon.

notes

additional information of the site

description

Function to create new site objects for personal analysis. The new object will not be uploaded to the database.

collunits

Collection units in the site

Value

site object

Examples

{
# Create a site called "My Lake", to
x = sf::st_as_sf(sf::st_sfc(sf::st_point(c(5,5))))
my_site <- set_site(sitename = "My Lake",
                    geography = x,
                    description = "my lake",
                    altitude = 30)
}

neotoma2 documentation built on May 29, 2024, 6:21 a.m.