Learn R Programming

mlr3misc

Package website: release | dev

Miscellaneous helper functions for mlr3.

Copy Link

Version

Install

install.packages('mlr3misc')

Monthly Downloads

7,331

Version

0.16.0

License

LGPL-3

Issues

Pull Requests

Stars

Forks

Maintainer

Marc Becker

Last Published

November 28th, 2024

Functions in mlr3misc (0.16.0)

call_back

Call Callbacks
Callback

Callback
count_missing

Count Missing Values in a Vector
compose

Composition of Functions
compute_mode

Compute The Mode
capitalize

Capitalize the First Letter of Strings
catn

Function for Formatted Output
crate

Isolate a Function from its Environment
enframe

Convert a Named Vector into a data.table and Vice Versa
cross_join

Cross-Join for data.table
clbk

Syntactic Sugar for Callback Construction
compat-map

Apply Functions in the spirit of 'purrr'
format_bib

Format Bibentries in Roxygen
distinct_values

Get Distinct Values
formulate

Create Formulas
encapsulate

Encapsulate Function Calls for Logging
get_seed

Get the Random Seed
named_vector

Create a Named Vector
has_element

Check if an Object is Element of a List
named_list

Create a Named List
hash_input

Hash Input
ids

Extract ids from a List of Objects
leanify_r6

Move all methods of an R6 Class to an environment
insert_named

Insert or Remove Named Elements
%nin%

Negated in-operator
load_dataset

Retrieve a Single Data Set
dictionary_sugar_get

A Quick Way to Initialize Objects from Dictionaries
extract_vars

Extract Variables from a Formula
reorder_vector

Reorder Vector According to Second Vector
names2

A Type-Stable names() Replacement
invoke

Invoke a Function Call
require_namespaces

Require Multiple Namespaces
get_private<-

Assign Value to Private Field
get_private

Extract Private Fields of R6 Objects
set_class

Set the Class
to_decimal

Convert a Vector of Bits to a Decimal Number
check_packages_installed

Check that packages are installed, without loading them
rowwise_table

Row-Wise Constructor for 'data.table'
topo_sort

Topological Sorting of Dependency Graphs
chunk_vector

Chunk Vectors
dictionary_sugar_inc_get

A Quick Way to Initialize Objects from Dictionaries with Incremented ID
did_you_mean

Suggest Alternatives
set_names

Set Names
open_help

Opens a Manual Page
str_collapse

Collapse Strings
sequence_helpers

Sequence Construction Helpers
is_scalar_na

Check for a Single Scalar Value
str_indent

Indent Strings
rcbind

Bind Columns by Reference
modify_if

Selectively Modify Elements of a Vector
keep_in_bounds

Remove All Elements Out Of Bounds
str_trunc

Truncate Strings
mlr_callbacks

Dictionary of Callbacks
strip_srcrefs

Strip source references from objects
rd_info

Helpers to Create Manual Pages
printf

Functions for Formatted Output and Conditions
transpose_list

Transpose lists of lists
unnest

Unnest List Columns
map_values

Replace Elements of Vectors with New Values
mlr3misc-package

mlr3misc: Helper Functions for 'mlr3'
recycle_vectors

Recycle List of Vectors to Common Length
which_min

Index of the Minimum/Maximum Value, with Correction for Ties
shuffle

Safe Version of Sample
register_namespace_callback

Registers a Callback on Namespace load/unLoad Events
set_params

Modify Values of a Parameter Set
with_package

Execture code with a modified search path
assert_ro_binding

Assertion for Active Bindings in R6 Classes
assert_callback

Assertions for Callbacks
as_factor

Convert to Factor
Context

Context
Dictionary

Key-Value Storage
as_short_string

Convert R Object to a Descriptive String
calculate_hash

Calculate a Hash for Multiple Objects
as_callback

Convert to a Callback