Skip to content
This repository was archived by the owner on Oct 13, 2022. It is now read-only.

Commit dca9b4d

Browse files
authored
Merge pull request #59 from limnoliver/master
corrected variable name I was referencing in new warning message.
2 parents 5cf101f + aae0eb0 commit dca9b4d

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

R/RMprep.R

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,9 +91,9 @@ RMprep <- function(df,
9191
pdate <- as.POSIXct(dates,format=Date.style[date.type],tz=tz)
9292
}
9393
if (any(is.na(pdate))) {
94-
warning(paste0("NA values present in column ", date.out, '. Please check whether input data contain NA values and/or that the proper time zone was specified.'))
94+
warning(paste0("NA values present in column ", dates.out, '. Please check whether input data contain NA values and/or that the proper time zone was specified.'))
9595
}
96-
df[date.out] <- pdate
96+
df[dates.out] <- pdate
9797
}
9898

9999
# Change column headers as specified

0 commit comments

Comments
 (0)