0.99.19-0
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 asStata.file()
orspss.file()
have new (optional) argumentsiconv=
andenconding=
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"), whileas_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".