sjlabelled 正式修復了read_spss()中讀入中文的功能--可以正式使用enc="big5"參數了
Published by 劉正山,
sjlabelled 1.0.12
General
get_dv_labels()
andget_term_labels()
now support clmm-objects (package ordinal) and stanmvreg-objects (package rstanarm).read_spss()
gets aenc
-argument for character encoding, which is now supported since haven 1.1.2.get_term_labels()
now returnsNULL
for unsupported models, instead of giving an error.get_dv_labels()
now returns a default string for unsupported models, instead of giving an error.
sjlabelled 1.0.11
General
as_labelled()
now corrects inconsistent types between labels and variable values.
Changes to functions
get_dv_labels()
gets amulti.resp
-argument to return each label of a multivariate response model (only for brmsfit objects).get_label()
now also returns name-attribute for empty labels ifx
was a data.frame.
Bug fixes
write_*()
-functions should now properly set labels for negative values.
sjlabelled 1.0.9
General
- Deprecated
set_note()
andget_note()
, because there is already an R base function for this purpose:comment()
. - Improved performance of functions, at the cost of removing support for the foreign package. sjlabelled now only supports labelled data from package haven.
Changes to functions
get_term_labels()
gets aprefix
-argument to prefix the returned labels of categorical variable either with the related variable name or label.
Bug fixes
- Fix issues with retrieving incorrect labels from
get_term_labels()
for models that used unlabelled data in combination with other contrasts than the default option. get_dv_labels()
no longer returns"NULL"
for multivariate-response-models fitted with brms.
sjlabelled 1.0.8
General
- Removed
lbl_df()
, because printing tibbles now depends on pkg pillar and was revised substantially, so maintainace oflbl_df()
is too extensive.
sjlabelled 1.0.7
General
- Cross references from
dplyr::select_helpers
were updated totidyselect::select_helpers
. - Replace deprecated arguments in
convert_case()
from call to package snakecase
sjlabelled 1.0.6
Changes to functions
get_dv_labels()
andget_term_labels()
now supportclm
-objects from package ordinal,polr
-objects from package MASS andZelig-relogit
-objects from package Zelig.get_dv_labels()
andget_term_labels()
get a...
-argument to pass down further arguments tosnakecase::to_any_case()
.convert_case()
is now exported, for usage in other packages as well.- Remove
protect
-argument from internal case conversion (affectsget_term_labels()
andget_dv_labels()
), in preparation for forthcoming snakecase-package update.
sjlabelled 1.0.5
General
- Remove unnecessary imports.
- Revised
lbl_df()
due to changes in the internals oftibble::trunc_mat()
.
New functions
as_factor()
to convert labelled vectors into factors, preserving labels.
Changes to functions
get_dv_labels()
now supportsbrmsfit
-objects from packagebrms
.
sjlabelled 1.0.4
Changes to functions
get_term_labels()
now includes variable names for factors with numeric factor levels only (and not only return the numeric level as term label).
Bug fixes
- Fixed bug for
as_label()
, whenx
was a character vector and argumentdrop.levels
wasTRUE
. - Fixed issue for lme and gls objects in
get_term_labels()
andget_dv_labels()
.
sjlabelled 1.0.3
General
- Changed package imports, so
sjlabelled
no longer requires R version 3.3.3 or higher.
sjlabelled 1.0.2
General
- Minor fix to avoid warning when using
as_numeric()
.
Changes to functions
get_label()
,get_term_labels()
andget_dv_labels()
get acase
-argument, to convert labels into any case, using the snakecase-package.
sjlabelled 1.0.1
General
- Removed function ‘var_rename()’, which is in pkg ‘sjmisc’.
New functions
get_term_labels()
andget_dv_labels()
to retrieve term labels from regression models.
Changes to functions
as_numeric()
gets ause.labels
-argument to use value labels as new values if these are numeric.
sjlabelled 1.0.0
General
- Initial release. All labelled data utility functions from package sjmisc have been moved to this package, which is now dedicated to tools for working with labelled data.
https://cran.rstudio.com/web/packages/sjlabelled/news/news.html