View source: R/removeDuplicates.r
removeDuplicates | R Documentation |
Removes observations from the data frame Sample when the observation has the identical date and value as another observation
removeDuplicates(Sample)
Sample |
dataframe with at least DecYear and ConcHigh, default name is Sample |
A data frame 'Sample' with the following columns:
Name | Type | Description |
Date | Date | Date |
ConcLow | numeric | Lower limit of concentration |
ConcHigh | numeric | Upper limit of concentration |
Uncen | integer | Uncensored data (1=TRUE, 0=FALSE) |
ConcAve | numeric | Average concentration |
Julian | integer | Number of days since Jan. 1, 1850 |
Month | integer | Month of the year [1-12] |
Day | integer | Day of the year [1-366] |
DecYear | numeric | Decimal year |
MonthSeq | integer | Number of months since January 1, 1850 |
SinDY | numeric | Sine of the DecYear |
CosDY | numeric | Cosine of the DecYear |
DecYear <- c('1985.01', '1985.01', '1985.02', '1985.02', '1985.03')
ConcHigh <- c(1,2,3,3,5)
dataInput <- data.frame(DecYear, ConcHigh, stringsAsFactors=FALSE)
Sample <- removeDuplicates(dataInput)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.