Removed HMM code and plot_sequence()
function (both do not really fit in this package).
Added more vignettes to illustrate use cases.
Fixed bug in checks for matrices by checking for NA
, NaN
and infinite values.
Increment RoxygenNote to 7.3.0.
Added function system_information()
that returns some general system level information.
Added functions check_list_of_lists()
, test_list_of_lists()
, and assert_list_of_lists()
.
Added functions check_numeric_vector()
, test_numeric_vector()
, and assert_numeric_vector()
.
Fixed a bug in merge_lists()
, where NULL
elements got erroneously ignored.
function_arguments()
.Added function check_date()
which checks if the input has the correct date format.
Added function find_closest_year()
which finds the closest year to a given date.
Added function match_numerics()
which matches the indices of two numeric vectors as good as possible (that means with the smallest possible sum of deviations).
Added function simulate_markov_chain()
which simulates a Markov chain.
Added function sample_transition_probability_matrix()
which samples a transition probability matrix.
Added functions test_covariance_matrix()
, test_correlation_matrix()
, test_transition_probability_matrix()
, and test_probability_vector()
(which are the “test” version of the corresponding “assert” functions).
Added argument tolerance
for covariance matrix, correlation matrix, transition probability matrix, and probability vector check functions to account for machine epsilon and avoid false positives.
Added functions ll_hmm()
and simulate_hmm()
to compute log-likelihood and simulate data from hidden Markov model.
Added argument on_time_out
to function timed()
that defines what action to take if the evaluation time exceeded (error, warning, or silent).
Added support to select identifier = "all"
in Index
object and to suppress warnings (if unknown identifiers were selected) (globally) via the $hide_warnings
field.
Added argument logical
to Index
object to combine multiple identifiers either with logical and or logical or.
Added function unexpected_error()
that handles an unknown error.
Added function group_data_frame()
that groups a data.frame
according to the values of a column.
Added function delete_data_frame_columns()
that deletes columns of a data.frame
.
Added function renv_development_packages()
that creates a file that loads development packages so that {renv}
can detect and write them to the lockfile.
Added function plot_sequence()
that plots a sequence of numbers.
Renamed Index
-> Storage
.
Initialized a package website with {pkgdown}
and started to add vignettes.
Added function timed()
which evaluates an expression and interrupts the evaluation after a defined amount of seconds.
Added function do.call_timed()
which measures the computation time of a do.call()
call.
Added function try_silent()
which tries to execute an expression and returns a string with the error message if the execution failed.
Added R6 object Index
that provides a simple indexing interface for list elements.
Modified basic_package_sticker()
: Option to add brackets to package name, now scales font, the function is no longer exported.
Added function function_body()
which extracts the body of a function.
Added function permutation()
which creates all permutations of a given vector.
Added function variable_name()
which tries to determine the name of a variable passed to a function.
Added function function_defaults()
which returns the default function arguments.
Added R6 object Dictionary
that provides a simple simple key-value interface.
Added function merge_lists()
which merges list
s based on their element names.
Renamed arguments in function timed()
: expr
-> expression
, secs
-> seconds
.
Added argument units
to function do.call_timed()
.