compressData: Compress sample data frame

Description Usage Arguments Value Examples

View source: R/compressData.r

Description

Using raw data that has at least dateTime, value, code, populates the measured data portion of the Sample dataframe used in EGRET. ConcLow = Lower bound for an observed concentration ConcHigh = Upper bound for an observed concentration Uncen = 1 if uncensored, 0 if censored

Usage

1

Arguments

data

dataframe contains at least dateTime, value, code columns

verbose

logical specifying whether or not to display progress message

interactive

logical deprecated. Use 'verbose' instead

Value

data frame returnDataFrame data frame containing dateTime, ConcHigh, ConcLow, Uncen

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
dateTime <- c('1985-01-01', '1985-01-02', '1985-01-03')
comment1 <- c("","","")
value1 <- c(1,2,3)
comment2 <- c("","<","")
value2 <- c(2,3,4)
comment3 <- c("","","<")
value3 <- c(3,4,5)
dataInput <- data.frame(dateTime, comment1, value1, 
      comment2, value2, 
      comment3, value3, stringsAsFactors=FALSE)
compressData(dataInput)

Example output

    dateTime ConcLow ConcHigh Uncen
1 1985-01-01       6        6     1
2 1985-01-02       6        9     0
3 1985-01-03       7       12     0

EGRET documentation built on Jan. 25, 2022, 5:08 p.m.