Learn R Programming

mlr3misc

Package website: release | dev

Miscellaneous helper functions for mlr3.

Copy Link

Version

Install

install.packages('mlr3misc')

Monthly Downloads

8,821

Version

0.17.0

License

LGPL-3

Issues

Pull Requests

Stars

Forks

Maintainer

Marc Becker

Last Published

May 12th, 2025

Functions in mlr3misc (0.17.0)

cat_cli

Function to transform message to output
compute_mode

Compute The Mode
compose

Composition of Functions
clbk

Syntactic Sugar for Callback Construction
compat-map

Apply Functions in the spirit of 'purrr'
extract_vars

Extract Variables from a Formula
check_operators

Logical Check Operators
encapsulate

Encapsulate Function Calls for Logging
distinct_values

Get Distinct Values
enframe

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

Isolate a Function from its Environment
dictionary_sugar_inc_get

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

Function for Formatted Output
did_you_mean

Suggest Alternatives
count_missing

Count Missing Values in a Vector
cross_join

Cross-Join for data.table
hash_input

Hash Input
chunk_vector

Chunk Vectors
named_list

Create a Named List
mlr_callbacks

Dictionary of Callbacks
get_seed

Get the Random Seed
insert_named

Insert or Remove Named Elements
invoke

Invoke a Function Call
has_element

Check if an Object is Element of a List
dictionary_sugar_get

A Quick Way to Initialize Objects from Dictionaries
get_private<-

Assign Value to Private Field
keep_in_bounds

Remove All Elements Out Of Bounds
formulate

Create Formulas
get_private

Extract Private Fields of R6 Objects
format_bib

Format Bibentries in Roxygen
ids

Extract ids from a List of Objects
recycle_vectors

Recycle List of Vectors to Common Length
register_namespace_callback

Registers a Callback on Namespace load/unLoad Events
map_values

Replace Elements of Vectors with New Values
mlr3misc-package

mlr3misc: Helper Functions for 'mlr3'
named_vector

Create a Named Vector
open_help

Opens a Manual Page
modify_if

Selectively Modify Elements of a Vector
names2

A Type-Stable names() Replacement
is_scalar_na

Check for a Single Scalar Value
leanify_r6

Move all methods of an R6 Class to an environment
%nin%

Negated in-operator
printf

Functions for Formatted Output and Conditions
str_indent

Indent Strings
rowwise_table

Row-Wise Constructor for 'data.table'
sequence_helpers

Sequence Construction Helpers
str_collapse

Collapse Strings
topo_sort

Topological Sorting of Dependency Graphs
to_decimal

Convert a Vector of Bits to a Decimal Number
set_names

Set Names
reorder_vector

Reorder Vector According to Second Vector
require_namespaces

Require Multiple Namespaces
set_class

Set the Class
rcbind

Bind Columns by Reference
load_dataset

Retrieve a Single Data Set
rd_info

Helpers to Create Manual Pages
shuffle

Safe Version of Sample
set_params

Modify Values of a Parameter Set
which_min

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

Transpose lists of lists
unnest

Unnest List Columns
with_package

Execture code with a modified search path
str_trunc

Truncate Strings
strip_srcrefs

Strip source references from objects
Dictionary

Key-Value Storage
calculate_hash

Calculate a Hash for Multiple Objects
as_factor

Convert to Factor
Callback

Callback
call_back

Call Callbacks
Context

Context
assert_ro_binding

Assertion for Active Bindings in R6 Classes
assert_callback

Assertions for Callbacks
as_callback

Convert to a Callback
as_short_string

Convert R Object to a Descriptive String
check_packages_installed

Check that packages are installed, without loading them
capitalize

Capitalize the First Letter of Strings