Skip to contents

Creates ConcAve and ConcLow based on Uncen. Removes any samples with NA values in ConcHigh.

Usage

populateSampleColumns(rawData)

Arguments

rawData

dataframe with dateTime, ConcLow, ConcHigh, Uncen

Value

Sample2 dataframe with columns: Date, ConcLow, ConcHigh, Uncen, ConcAve, Julian, Month, Day, DecYear, MonthSeq, waterYear, SinDY, and CosDY (DY = decimal year)

Examples

dateTime <- c('1985-01-01', '1985-01-02', '1985-01-03')
ConcLow <- c(1,2,0)
ConcHigh <- c(1,2,3)
Uncen <- c(1,1,0)
dataInput <- data.frame(dateTime, ConcLow, ConcHigh, Uncen, stringsAsFactors=FALSE)
Sample <- populateSampleColumns(dataInput)