Published April 1, 2022
| Version v0.5.0
Software
Open
MatthewHeun/matsbyname: v0.5.0
Creators
Description
matsbyname 0.5.0 (2022-04-01)
- New format for documentation pages, including a search function!
- New vignette "Using summarise in matsbyname"
clarifies issues around ambiguities in functions
that use a
...
argument. aggregation-vignette
now includes details on usingsum_byname(.summarise = TRUE)
withdplyr::summarise()
.sum_byname()
,matrixproduct_byname()
,hadamardproduct_byname()
,mean_byname()
,geometricmean_byname()
,equal_byname()
,identical_byname()
,samestructure_byname()
, andand_byname()
all gain argument.summarise
to signal intention to operate down a column (.summarise = TRUE
) or along a list (.summarise = FALSE
). The default value is.summarise = FALSE
, thereby maintaining previous behavior.- New functions
agg_table_to_agg_map()
andagg_map_to_agg_table()
assist with manipulating aggregation maps. - New vignette
aggregation-vignette
demonstrates the new aggregation functions. - Functions
rename_to_pref_suff_byname()
andaggregate_to_pref_suff_byname()
now route to new functionsrename_to_piece_byname()
andaggregate_pieces_byname()
, thereby avoiding code duplication. This change may break some code. These functions now return an empty string ("") when a suffix is requested and one is not found. Previously, these functions returned the entire string when a suffix was not found. - New function
aggregate_pieces_byname()
brings the flexibility of theRCLabels
tomatsbyname
. - Remove (comment for now)
notation functions in
notation.R
that have been moved toRCLabels
. - New function
rename_to_piece_byname()
will assist with renaming and aggregating according to pieces of row and column names. - New function
vec_from_store_byname()
creates vectors from a matrix (from which row of column names are taken) and a vector (which acts as a store of values) based on matching of pieces of the labels. This new function is made possible by the newRCLabels
package. - Notation code moved to new package,
RCLabels
. RCLabels::make_or_pattern()
gains newpattern_type
, "literal", which returns therow_col_names
argument unmodified.trim_rows_cols()
gains awarn_if_a_incomplete
argument. WhenTRUE
, a warning is issued if argumenta
is missing entries onmargin
that are present inmat
.- Many new tests for new features.
But some functions have been moved to
RCLabels
, so the total number of tests has gone down slightly.- Now at 1072 tests, all passing.
- Test coverage remains at 100 %.
Files
MatthewHeun/matsbyname-v0.5.0.zip
Files
(4.2 MB)
Name | Size | Download all |
---|---|---|
md5:52eadbbedcb15c6a77372f35d326aa90
|
4.2 MB | Preview Download |
Additional details
Related works
- Is supplement to
- https://github.com/MatthewHeun/matsbyname/tree/v0.5.0 (URL)