first.loc: Find the first sampling location in a clustered sample

Description Usage Arguments Value

View source: R/first.loc.R

Description

For a sampling design that includes clusters of sampled locations, this function provides the first sample in the cluster.

Usage

1
first.loc(ssn.DF.now, start.point.method)

Arguments

ssn.DF.now

an object of class data.frame which is a single reach's subset of the point.data slot fomr a SpatialStreamNetwork

start.point.method

a character vector indicating which method to apply in selecting the the location, with choices of random, prop.to.end, and prop.to.start

Value

a numeric scalar which is the selected pid column from the point.data data frame


apear9/SSNdesign documentation built on Feb. 19, 2020, 4:29 a.m.