I have a df where a bunch of missing data came in as empty character strings, so "" instead of NA or something useful.
I have tried to replace it with NA using this code:
df[df == 0] <- NA
Which in mine is:
nc_allparcels[nc_allparcels == ""] <- NA
However, the error I get is:
Error in as.POSIXlt.character(x, tz, ...) : character string is not in a standard unambiguous format
Any suggestions for fixing this? Thanks!