Skip to content
This repository has been archived by the owner on Dec 26, 2023. It is now read-only.

Commit

Permalink
another length >1 logical if
Browse files Browse the repository at this point in the history
  • Loading branch information
bransonf committed Feb 7, 2019
1 parent e64b0ad commit 148f23b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/csb_date_filter.R
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ csb_date_filter <- function(.data, var, day = NULL, month = NULL, year = NULL){
#check that year entry is valid for csb data, warn for entry of 2008.
if(!missing(year)){

if(!(year %in% 2008:2019)){
if(!all(year %in% 2008:2019)){
stop("The year given is not valid for these data.")
}

Expand Down

0 comments on commit 148f23b

Please sign in to comment.