readstata13 icon indicating copy to clipboard operation
readstata13 copied to clipboard

Package to read the Stata 13 (and newer) file format into a R data.frame

Results 12 readstata13 issues
Sort by recently updated
recently updated
newest added

I've been trying to improve reading times of some moderately large `.dta` files (about 5GB each), however, those times sometimes differ by an order of magnitude. The actual value is...

I have a problem when importing labels from Stata to R. Problem seems to occur because the variable has SOME missing labels. `read.dta13` seems to assign values without labels first...

invalid
wontfix

Beginning with Stata 14 on value labels must be UTF-8 encoded (https://www.stata.com/help.cgi?dta#labelnames). The man page of `save.dta13` should be updated and a note to use `version=118` for newer Stata versions...

At the moment, readstata13 is the only package available that can write compressed Stata .dta files. But the package does not play nicely with labelled vectors from the tidyverse labelled...

enhancement

While fixing the unsigned integers, I stumbled upon something else. There are potential problems with huge datafiles stored in older Stata versions, where we have to determine some limits. Stata...

bug
enhancement

and not Rcpp::CharacterVector Included test by @hans-elliott99

rebased testing and lintr changes

Stata 18 is out and it ships two new file formats * https://www.stata.com/help.cgi?dta_120 * https://www.stata.com/help.cgi?dta_121 (for more than 32k variables) The clue appears to be something Stata calls `alias` variables....

Untested changes to support reading from dta formats 120 and 121. The alias format is ignored when reading and a warning returned. Write support seems possible, but useless at the...