- Allow
NULL
or empty values inassert_length()
andassert_type()
.
seek_rows()
toseek_columns()
returnNULL
if there is nothing to look for.
- Add
append_column()
to add a named vector as a column in adata.frame
. - Add
assert_nrow()
andassert_ncol()
to check the number of rows/columns.
- Translate into French.
seek_rows()
andseek_columns()
gained a newnames
argument.assert_type()
gained newallow_empty
andallow_null
arguments.
- Add
scale_midpoint
to rescale a continuous vector to have specified minimum, midpoint and maximum.
- Reexport
%||%
from base on newer versions of R to avoid conflict messages.
- Move
palette_*()
functions to khroma.
- Add
describe()
to quickly describe amatrix
-like object. - Add
sparsity()
to computes data sparsity (proportion of zeros).
- Add
palette_color_continuous()
andpalette_color_discrete()
for color mapping. - Add
palette_shape()
andpalette_size()
for symbol shape and size mapping. - Add
clean_whitespace()
to remove leading/trailing white space. - Add
seek_*()
andget_*()
to find and get rows/columns by names in adata.frame
.
compact()
andremove_*()
gained a newverbose
argument to report extra information on progress.
- Rename
needs()
toassert_package()
.
- Add
%||%
to replaceNULL
with a default value. - Add
%+%
to concatenate character vectors. - Add
scale_range
to rescale a continuous vector to have specified minimum and maximum.
- Remove deprecated methods.
- Remove
na.rm
argument of numeric predicates (so that the length of the output equals the length of the input).
- Add
remove_constant()
to remove constant columns. - Add
remove_empty()
to remove empty strings in amatrix
-like object. - Add
replace_empty()
to replace empty strings in amatrix
-like object.
- Remove deprecated methods.
- Deprecate
to_long()
andwide_to_long()
.
- Use tinytest instead of testthat.
- Add
math_lcm()
andmath_gcd()
to compute the lowest common multiple and the greatest common divisor. - Add
interval_hdr()
andinterval_credible()
to compute the credible intervals.
jackknife()
gained a new argument to apply a function on the leave-one-out values (f
).
- Add
with_seed()
to evaluate an expression with a temporarily seed.
- Add
needs()
to check for the availability of a package.
- Remove deprecated methods.
- Remove unused argument in
assert_unique()
.
- Add
append_rownames()
to convert row names to an explicit column. - Add
assert_positive()
,assert_negative()
,assert_odd()
,assert_even()
,assert_constant()
,assert_decreasing()
,assert_increasing()
,assert_lower()
andassert_greater()
to checknumeric
vectors. - Add
bootstrap()
for bootstrap estimation. - Add
compact()
to remove empty columns/rows in an array-like object. - Add
discard()
andkeep()
remove/keep rows/columns in an array-like object using a predicate function. - Add
to_long()
to transform amatrix
to a longdata.frame
.
- Export all predicate functions.
- Deprecate
as_long()
,assert_numeric()
,assert_trend()
,assert_relation()
,assert_matrix()
andremove_empty()
.
- Remove all
*Matrix
classes and methods. - Rename
compact()
todiscard()
.
- Add
assign_rownames()
andassign_colnames()
to make a specific row/column the column/row names of adata.frame
. - Add
assert_count()
to validate count data (absolute frequencies/integer). - Add
count()
to count values by rows/columns according to a given predicate. - Add
detect()
to find rows/columns in an array-like object according to a given predicate. - Add
compact()
to remove rows/columns in an array-like object according to a given predicate. - Add
jackknife()
for jackknife estimation. - Add
confidence()
to compute confidence interval for the mean.
- Add
replace_Inf()
to replace infinite values in amatrix
-like object. - Add
replace_zero()
to replace zero in amatrix
-like object. - Add
remove_Inf()
to remove infinite values in amatrix
-like object. - Add
assert_*()
andvalidate()
to validate objects. - Add
get_dates()
,set_dates()<-
to extract/replacedates
slot. - Add
get_terminus()
,set_terminus()<-
,get_tpq()
,set_tpq()<-
,get_taq()
,set_taq()<-
to extract/replacetpq
andtaq
slots. - Add
summary()
forAbundanceMatrix
objects.
AbundanceMatrix
class gained a new slot to store the sample sizes (totals
).AbundanceMatrix
class gained two new slots to store chronological information (dates
,tpq
,taq
).- Add
AbundanceSummary
class to store summary of anAbundanceMatrix
object.
- Fix warning "data length differs from size of matrix" in examples (R-devel).
- Add
replace_NA()
to replace missing values. - Add
remove_NA()
,remove_zero()
andremove_empty()
to remove missing values, zeros and empty rows/columns in amatrix
. - Add
get_samples()
,set_samples()<-
,get_groups()
andset_groups()<-
to extract/replacesamples
andgroups
slots.
- Change
OccurrenceMatrix
inheritance (fromNumericMatrix
toIntegerMatrix
). - Rename
AbundanceMatrix
(ambiguous) toCompositionMatrix
. - Deprecate
as_abundance()
. - Remove
SimilarityMatrix
class. as_long()
gained a newreverse
argument.
- CRAN package check error has been fixed (random error with testthat).
- CRAN package check warnings have been fixed (remove nomnoml from suggested packages).
- CRAN package check warnings have been fixed ("documented arguments not in \usage" in the r-devel checks).
- Initial version on CRAN.
- Beta release.