I am using IPUMS-DHS data for a project, and I think I encountered a potential error when using the R command to import the data into my R session.
ddi <- read_ipums_ddi("ipums_data/idhs_00004.xml") data <- read_ipums_micro(ddi)
Specifically, when I downloaded variables with high decimal precision, like NDVI, CROPLAND, etc. (e.g. 0.34543), the file stores these values as an
integer and all of them are “0”. Even when I try to convert from
double, this does not seem to resolve the issue. This may be a user-error on my part, but am wondering if there may be something going on with the underlying function when it stores the NDVI, CROPLAND variables as integers.