After I read a csv in RStudio, some columns were able to detect Null Values (NA) but others not. View(df)
displays some columns with blank spaces & not as NA. How do I go about this so that null values can be represented as NA?
# Create example data frame
dat <- data.frame(
Date = c("04/12/2011", "03/01/2002", "02/07/2002", "01/02/2001", "", ""),
A = "",
B = c(NA, 1981, NA, 1981, 1950, 1989)
)