Releases: melff/memisc
Releases · melff/memisc
0.99.25.3
- There is now an explicit
as.data.set()
method for objects in class "tbl_df" (so-called "tibbles"). - The
as.character()
-method for "item" objects now has an optionalinclude.missings=
argument. - It is now possible to apply
codeplan()
to "item" objects, to enquire and modify labels and missing value declarations. - The
as.data.frame()
method for extended tables of percentages (that include confidence intervals and standard errors) now works as expected (again).
0.99.25.2
as.item()
andcodebookEntry()
methods are added for objects of class
"labelled" as they occur in some imported tibbles.as.item()
now drops non-unique labelled values when applied to a
"labelled", "haven_labelled", or "haven_labelled_spss" object.- With
codebook()
it is now possible to disable the display of unweighted
data summaries. - In accordance to future deprecation of the function
default.stringsAsFactors()
the default value of thestringsAsFactor
argument is nowFALSE
.
0.99.25
0.99.24
- Added support for codebooks with weighted data.
- Added support for subsetting codebooks with
$
,[
, and[[
- Fixed a bug that prevented
genTable
andAggregate
to work as expected
withdata.set
objects - Measurement levels of variables in
data.set
objects are now obtained from
the metadata in the SPSS file (if available) - The character set encoding in an SPSS file is now detected (if information
is available) and used to translate the variable labels and value labels.
0.99.23
0.99.22
This release makes the following improvements:
- There are convenience wrappers such as
Mean()
etc. formean()
etc. that have the default settingna.rm=TRUE
instead ofna.rm=FALSE
. with(Groups())
,withGroups()
,within(Groups())
,withinGroups()
,Aggregate()
, andgenTable()
are considerably faster now. They can also make use of certain automatic variables such asn_
,i_
that contain group sizes and group indices.relabel()
,rename()
, anddimrename()
, do no longer require their arguments to be enclosed in quotation marks.
0.99.21
This release is on its way to be published on CRAN. It fixes an issue on C link time and includes a frew improvements:
- Handling of SPSS .sav files created with ReadStat or haven is improved.
- Support for SPSS syntax files in non-native encoding has been added.
labels()
,value.filter()
,codebook()
andcodeplan()
can now deal withNULL
arguments (bei returningNULL
).Reshape()
has been improved.codebook()
now works as expected with "tibble" imported with the "haven" package.- "data.set" object can now directly be converted into "data.table" objects.
- The level of measurement can now be set for several variables in a data set.
0.99.20.1
0.99.20
This release improves interoperability with RStudio, in particular with respect to viewing data objects.
- An extendable function
view()
allows to use theView()
facilities provided by graphical user interfaces (in particular RStudio) with objects not originally supported by these user interfaces. In addition,view
methods for "codeplan", "decriptions", "data.set", and "inporter" are provided, which allow to conviently inspect the contents of these objects in RStudio. - The function
head
andtail
now work with "data.set" and "importer" objects in the same sensible way as they with data frames. - The function
recode
behaves more coherently: If a labelled item is the result ofrecode
it gets the measurement level "nominal". Factor levels explictly created first come first in the order of factor levels.
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".