linelist
linelist copied to clipboard
check for entirely missing columns in guess_dates
This will return the column unchanged if encountered and will fix #108
@aspina7, can you check this with remotes::install_github("reconhub/linelist#109")
and confirm that it works for you?
so it works for a character NA variable (returns only NAs). But i think the default for an entirely NA var is to be logical....
so it works for a character NA variable (returns only NAs). But i think the default for an entirely NA var is to be logical....
Okay, I've set it so that it will return the unmodified NA column before it panics about vector types. Try it now.
works a charm - maybe just specify in the warning which variable?
works a charm - maybe just specify in the warning which variable?
Again, difficult to do because the context of this function is on individual vectors. It doesn't know that these vectors come from a data frame.
ah true true sorry!