Stata doesn't distinguish between empty strings and missing values, as stated in the documentation (help missing
):
Stata has one string missing value, which is denoted by "" (blank)
It's easy enough to convert the empty strings to NA after importing into R, e.g.,
test[test == ""] <- NA