Skip to content

datawizard 1.1.0

Choose a tag to compare

@etiennebacher etiennebacher released this 10 May 07:17
a81733b

BREAKING CHANGES

  • data_read() now also returns Bayesian models from packages brms and
    rstanarm as original model objects, and no longer coerces them into data
    frames (#606).

  • The output format of describe_distribution() on grouped data has changed.
    Before, it printed one table per group combination. Now, it prints a single
    table with group columns at the start (#610).

  • The output format of describe_distribution() when confidence intervals are
    requested has changed. Now, for each centrality measure a confidence interval
    is calculated (#617).

  • data_modify() now always uses values of a vector for a modified or newly
    created variable, and no longer tries to detect whether a character value
    possibly contains an expression. To allow expression provided as string (or
    character vectors), use the helper-function as_expr(). Only literal
    expressions or strings wrapped in as_expr() will be evaluated as
    expressions, everything else will be treated as vector with values for new
    variables (#605).

CHANGES

  • display() is now re-exported from package insight.

  • data_read() and data_write() now rely on base-R functions for files of
    type .rds, .rda or .rdata. Thus, package rio is no longer required
    to be installed for these file types (#607).

  • data_codebook() gives an informative warning when no column names matched
    the selection pattern (#601).

  • data_to_long() now errors when columns selected to reshape do not exist in
    the data, to avoid nonsensical results that could be missed (#602).

  • New argument by in describe_distribution() (#604).

  • describe_distribution() now gives informative errors when column names
    in the input data frame conflict with column from the output table (#612).

  • The methods for parameters_distribution objects are now defined in
    datawizard (they were previously in parameters) (#613).

BUG FIXES

  • Fixed bug in data_to_wide(), where new column names in names_from were
    ignored when that column only contained one unique value.

  • Fixed bug in describe_distribution() when some group combinations
    didn't appear in the data (#609).

  • Fixed bug in describe_distribution() when more than one value for the
    centrality argument were specified (#617).

  • Fixed bug in describe_distribution() where setting verbose = FALSE
    didn't hide some warnings (#617).

  • Fixed warning in data_summary() when a variable had the same name as
    another object in the global environment (#585).