Skip to content

Commit

Permalink
use && for scalar comparison in messy_linelist
Browse files Browse the repository at this point in the history
  • Loading branch information
joshwlambert committed Feb 17, 2025
1 parent 37ce36c commit 291ebef
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/messy_linelist.R
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ messy_linelist <- function(linelist, ...) {
subclass <- character(0)
# if linelist is a subclass of <data.frame> unclass to <data.frame> for
# subsetting
if (is.data.frame(linelist) &
if (is.data.frame(linelist) &&
inherits(linelist, "data.frame", which = TRUE) > 1) {
subclass <- class(linelist)
linelist <- as.data.frame(linelist)
Expand Down

0 comments on commit 291ebef

Please sign in to comment.