Skip to content

0.99.19-0

Compare
Choose a tag to compare
@melff melff released this 18 Nov 21:19

This release enhances the facilities to import data and makes memisc compatible to the packages tibble and haven:

  • A new spss.file() function can be used to import both SPSS "portable" (with file name extension ".por") and "system" files (with file name extension ".sav").
  • importer functions such as Stata.file() or spss.file() have new (optional) arguments iconv= and enconding= that allow to specify the encoding of strings in the file being importet (with some sensible defaults, such as CP1252 for older Stata files and SPSS files)
  • as_tibble() can be used to transform "data.set" objects into (regular) tibbles (objects of class "tbl_df"), while as_haven() can be used to transform "data.set" objects into the kind of tibbles that are produced by the package haven.
  • When a "data.set" is transformed into an ordinary data frame or a tibble, "item" objects retain their "description" annotation as "label" attribute.
  • When as.data.set() is applied to a tibble imported via haven, the special attributes "label", "labels", "na_values", and "na_range" are appropriately translated into item attributes "description", "value.labels", and "missing.values".