Bumps the needed minimum R version to
Removed deprecated function
data_findcols(). Please use its replacement,
data_partition()is deprecated. Please use
Given his continued and significant contributions to the package, Etienne Bacher (@etiennebacher) is now included as an author.
unstandardise()now works for
unnormalize()now works for
reshape_wider()now follows more consistently
rows_fromare deprecated and should be replaced by
Some of the text formatting helpers (like
text_concatenate()) gain an
encloseargument, to wrap text elements with surrounding characters.
winsorizenow accepts “raw” and “zscore” methods (in addition to “percentile”). Additionally, when
robustis set to
method = "zscore", winsorizes via the median and median absolute deviation (MAD); else via the mean and standard deviation. (@rempsyc, #177, #49, #47).
data_partition()now allows to create multiple partitions from the data, returning multiple training and a remaining test set.
colnames_to_row()to move a row to column names, and column names to row (@etiennebacher, #169).
CRAN release: 2022-05-16
- Added the
standardize.default()method (moved from package effectsize), to be consistent in that the default-method now is in the same package as the generic.
standardize.default()behaves exactly like in effectsize and particularly works for regression model objects. effectsize now re-exports
data_shift()to shift the value range of numeric variables.
data_recode()to recode old into new values.
data_tabulate()to create frequency tables of variables.
data_read()to read (import) data files (from text, or foreign statistical packages).
data_find()was added as alias to
find_colums(), to have consistent name patterns for the datawizard functions.
data_findcols()will be removed in a future update and usage is discouraged.
selectargument (and thus, also the
excludeargument) now also accepts functions testing for logical conditions, e.g.
is.numeric), or any user-defined function that selects the variables for which the function returns
foo <- function(x) mean(x) > 3).
excludenow allow the negation of select-helpers, like
Many functions now get a
.defaultmethod, to capture unsupported classes. This now yields a message and returns the original input, and hence, the
.data.framemethods won’t stop due to an error.
data_filter()can also be a numeric vector, to indicate row indices of those rows that should be returned.
convert_to_na()gets methods for variables of class
convert_to_na()for factors (and data frames) gains a
drop_levelsargument, to drop unused levels that have been replaced by
data_to_numeric()gains two more arguments,
lowest, to give better control of conversion of factors.
CRAN release: 2022-03-30
data_match()now returns filtered data by default. Old behavior (returning rows indices) can be set by setting
return_indices = TRUE.
The vignette Analysing Longitudinal or Panel Data has now moved to parameters package.
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_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.
matchargument, 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.
CRAN release: 2022-03-02
To rotate data frames:
To reverse score variables:
To cut (recode) data into groups:
To replace specific values with
data_relocate()can now also be numeric values, indicating the position of the destination column.
CRAN release: 2022-01-26
CRAN release: 2022-01-04
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.
ci_typeargument, to reshape data frames where CI-columns have prefixes other than
Fixed issue in
Fixed issue in
CRAN release: 2021-10-04
CRAN release: 2021-09-02
- This is mainly a maintenance release that addresses some issues with conflicting namespaces.
CRAN release: 2021-08-17