Skip to content

Releases: easystats/datawizard

datawizard 0.4.0

30 Mar 07:19
6d9331f
Compare
Choose a tag to compare

MAJOR CHANGES

  • data_match() now returns filtered data by default. Old behavior (returning
    rows indices) can be set by setting return_indices = TRUE.

  • The following functions are now re-exported from {insight} package:
    object_has_names(), object_has_rownames(), is_empty_object(),
    compact_list(), compact_character()

  • data_findcols() will become deprecated in future updates. Please use the
    new replacements find_columns() and get_columns().

  • The vignette Analysing Longitudinal or Panel Data has now moved to
    parameters package.

NEW FUNCTIONS

  • To convert rownames to a column, and vice versa: rownames_as_column()
    and column_as_rownames() (@etiennebacher, #80).

  • find_columns() and get_columns() to find column names or retrieve
    subsets of data frames, based on various select-methods (including
    select-helpers). These function will supersede data_findcols() in the
    future.

  • data_filter() as complement for data_match(), which works with logical
    expressions for filtering rows of data frames.

  • For computing weighted centrality measures and dispersion: weighted_mean(),
    weighted_median(), weighted_sd() and weighted_mad().

  • To replace NA in vectors and dataframes: convert_na_to() (@etiennebacher, #111).

MINOR CHANGES

  • The select argument in several functions (like data_remove(),
    reshape_longer(), or data_extract()) now allows the use of select-helpers
    for selecting variables based on specific patterns.

  • data_extract() gains new arguments to allow type-safe return values,
    i.e. always return a vector or a data frame. Thus, data_extract()
    can now be used to select multiple variables or pull a single variable
    from data frames.

  • data_match() gains a match argument, to indicate with which logical
    operation matching results should be combined.

  • Improved support for labelled data for many functions, i.e. returned
    data frame will preserve value and variable label attributes, where
    possible and applicable.

  • describe_distribution() now works with lists (@etiennebacher, #105).

  • data_rename() doesn't use pattern anymore to rename the columns if
    replacement is not provided (@etiennebacher, #103).

  • data_rename() now adds a suffix to duplicated names in replacement
    (@etiennebacher, #103).

BUG FIXES

  • data_to_numeric() produced wrong results for factors when
    dummy_factors = TRUE and factor contained missing values.

  • data_match() produced wrong results when data contained missing values.

  • Fixed CRAN check issues in data_extract() when more than one variable
    was extracted from a data frame.

datawizard 0.3.0

03 Mar 05:57
Compare
Choose a tag to compare
  • New functions:

    • To find or remove empty rows and columns in a data frame: empty_rows(),
      empty_columns(), remove_empty_rows(), remove_empty_columns(), and
      remove_empty.

    • To check for names: object_has_names() and object_has_rownames().

    • To rotate data frames: data_rotate().

    • To reverse score variables: data_reverse().

    • To merge/join multiple data frames: data_merge() (or its alias
      data_join()).

    • To cut (recode) data into groups: data_cut().

    • To replace specific values with NAs: convert_to_na().

    • To replace Inf and NaN values with NAs: replace_nan_inf().

  • Arguments cols, before and after in data_relocate() can now also be
    numeric values, indicating the position of the destination column.

datawizard 0.2.3

26 Jan 16:52
Compare
Choose a tag to compare
  • New functions:

    • to work with lists: is_empty_object() and compact_list()

    • to work with strings: compact_character()

Patch release: maintenance and bug fixes

04 Jan 12:16
Compare
Choose a tag to compare
  • New function data_extract() (or its alias extract()) to pull single
    variables from a data frame, possibly naming each value by the row names
    of that data frame.

  • reshape_ci() gains a ci_type argument, to reshape data frames where
    CI-columns have prefixes other than "CI".

  • standardize() and center() gain arguments center and scale, to define
    references for centrality and deviation that are used when centering or
    standardizing variables.

  • center() gains the arguments force and reference, similar to
    standardize().

  • The functionality of the append argument in center() and standardize()
    was revised. This made the suffix argument redundant, and thus it was
    removed.

  • Fixed issue in standardize().

  • Fixed issue in data_findcols().

datawizard 0.2.1

04 Oct 07:54
Compare
Choose a tag to compare
  • Exports plot method for visualisation_recipe() objects from {see}
    package.

  • centre(), standardise(), unstandardise() are exported as aliases for
    center(), standardize(), unstandardize(), respectively.

datawizard 0.2.0.1

03 Sep 06:47
Compare
Choose a tag to compare
  • This is mainly a maintenance release that addresses some issues with
    conflicting namespaces.

datawizard 0.2.0

17 Aug 09:53
Compare
Choose a tag to compare
  • New function: visualisation_recipe().

  • The following function has now moved to performance package:
    check_multimodal().

  • Minor updates to documentation, including a new vignette about demean().

datawizard 0.1.0

18 Jun 09:29
Compare
Choose a tag to compare
  • First release.