Skip to content
Snippets Groups Projects
Commit eb47d64e authored by Laura A DeCicco's avatar Laura A DeCicco
Browse files

Removed call to global variables.

parent 1acc3632
No related branches found
No related tags found
1 merge request!25Crannifying.
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
#' #'
#' Removes observations from the data frame Sample when the observation has the identical date and value as another observation #' Removes observations from the data frame Sample when the observation has the identical date and value as another observation
#' #'
#' @param localSample dataframe with at least DecYear and ConcHigh, default name is Sample #' @param Sample dataframe with at least DecYear and ConcHigh, default name is Sample
#' @export #' @export
#' @return Sample1 dataframe #' @return Sample1 dataframe
#' @examples #' @examples
...@@ -10,8 +10,8 @@ ...@@ -10,8 +10,8 @@
#' ConcHigh <- c(1,2,3,3,5) #' ConcHigh <- c(1,2,3,3,5)
#' dataInput <- data.frame(DecYear, ConcHigh, stringsAsFactors=FALSE) #' dataInput <- data.frame(DecYear, ConcHigh, stringsAsFactors=FALSE)
#' removeDuplicates(dataInput) #' removeDuplicates(dataInput)
removeDuplicates <- function(localSample=Sample) { removeDuplicates <- function(Sample) {
Sample1 <- localSample[!duplicated(localSample[c("DecYear","ConcHigh")]),] Sample1 <- Sample[!duplicated(Sample[c("DecYear","ConcHigh")]),]
return(Sample1) return(Sample1)
} }
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment