Skip to content

Commit

Permalink
Avoid warning message
Browse files Browse the repository at this point in the history
in inappropriate logical expression
  • Loading branch information
chrisfacer committed Dec 12, 2022
1 parent e34261d commit 8a5eafb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions R/mergedatasetsbycase.R
Original file line number Diff line number Diff line change
Expand Up @@ -1722,10 +1722,10 @@ isParsableAsDateTime <- function(text)
# See unit tests in test-mergedatasetsbycase.R
isConvertibleToDateTime <- function(num)
{
missing.indices <- is.na(num)
# check if numbers could be seconds from the epoch 1970/1/1 between the
# years 1990 and 2050
num[!missing.indices] >= 631152000 && num[!missing.indices] <= 2524608000
val.range <- range(num, na.rm = TRUE)
val.range[1] >= 631152000 && val.range[2] <= 2524608000
}

isConvertibleToCategorical <- function(variable.type, values, val.attrs,
Expand Down

0 comments on commit 8a5eafb

Please sign in to comment.