spread_sampleID: Assigns a sampleID to the entire rain event.

Description Usage Arguments Examples

View source: R/spread_sampleID.R

Description

During a rain event, runoff samples are collected and, later, the sample is sent to an analytical lab for analysis. These samples need to be attributed to the entire event

Usage

1

Arguments

A

data.frame containing the columns sampleID and flow.

Examples

1
2
3
4
5
6
7
d <- data.frame(flow = c(0,1,NA,1,0),
                sampleID = c(NA,NA,1,NA,NA))
spread_sampleID(d)

d <- data.frame(flow = c(0,1,NA,1,NA,1,0),
                sampleID = c(NA,NA,1,NA,2,NA,NA))
spread_sampleID(d)

jarad/HelmersLab documentation built on Dec. 5, 2020, 8:34 a.m.