Published September 13, 2018 | Version 2.7.5
Software Open

sjmisc: Data and Variable Transformation Functions

  • 1. Universitätsklinikum Hamburg-Eppendorf

Description

General

  • Reduce package dependencies.

New functions

  • de_mean() to compute group-meaned and de-meaned variables.
  • add_variables() and add_case() to add columns or rows in a convenient way to a data frame.
  • move_columns() to move one or more columns to another position in a data frame.
  • is_num_chr() to check whether a character vector has only numeric strings.
  • seq_col() and seq_row() as convenient wrapper to create a regular sequence for column or row numbers.

Changes to functions

  • descr() gets a weights-argument, to print weighted descriptive statistics.
  • The n-argument in row_means() and row_sums() now also may be Inf, to compute means or sums only if all values in a row are valid (i.e. non-missing).
  • Argument weight.by in frq() was renamed into weights.
  • frq() gets a title-argument, to specify an alternative title to the variable label.

Bug fixes

  • round_num() preserves data frame attributes.
  • frq() printed frequencies of grouping-variable for grouped data frames, when weights was not NULL.
  • Fixed issue with wrong title in frq() for grouped data frames, when grouping variable was an unlabelled factor.

Files

strengejacke/sjmisc-2.7.5.zip

Files (1.2 MB)

Name Size Download all
md5:c50e105ee7008c09f9f3a21943bd6abb
1.2 MB Preview Download

Additional details

Related works