openSTARS (version 1.0.0)

prepare_sites: Snap sites to streams and calculate attributes

Description

Snap sites to streams and calculate attributes

Usage

prepare_sites(sites_map, locid_c = NULL, pid_c = NULL)

Arguments

sites_map

character; name of sites map (observation or prediction sites) as created by import_data.

locid_c

character (optional); column name in the sites attribute table giving a unique site identifier.

pid_c

character (optional); column name in the sites attribute table that distinguishes between repeated measurements at a sampling site.

Details

This function is called by calc_sites and should not be called directly. Sites are snapped to the streams and upstream distance is calculated. Sites are snapped to the streams and upstream distance is calculated.