addSite: addSite

View source: R/addSite.R

addSiteR Documentation

addSite

Description

This function adds a site to an existing Park object.

Usage

addSite(park, SiteCode, SiteName, Lat, Long, Type)

Arguments

park

A Park object

SiteCode

A short code to designate the site, stored as a length 1 character vector.

SiteName

A name for the site. Stored as a length 1 character vector.

Type

The type of water body at the site - e.g. Stream, River, Lake, Ocean etc. Stored as a length 1 character vector.

Coordinates

A length 2 numeric vector containing the latitude and longitude of the site in WGS84 coordinates.

Details

This command can be used to add a Site object to the list of existing sites in an existing Park object. The SiteCode will be used to name the Site in the list. addCharacteristic can be used to add a charactersitic to the site.

Value

Returns the park object with the site added.


NCRN/NCRNWater documentation built on May 15, 2023, 9:50 p.m.