Learn R Programming

mlr3misc

Package website: release | dev

Miscellaneous helper functions for mlr3.

Copy Link

Version

Install

install.packages('mlr3misc')

Monthly Downloads

6,856

Version

0.15.1

License

LGPL-3

Issues

Pull Requests

Stars

Forks

Maintainer

Last Published

June 24th, 2024

Functions in mlr3misc (0.15.1)

compute_mode

Compute The Mode
cross_join

Cross-Join for data.table
call_back

Call Callbacks
capitalize

Capitalize the First Letter of Strings
enframe

Convert a Named Vector into a data.table and Vice Versa
compat-map

Apply Functions in the spirit of 'purrr'
encapsulate

Encapsulate Function Calls for Logging
count_missing

Count Missing Values in a Vector
clbk

Syntactic Sugar for Callback Construction
has_element

Check if an Object is Element of a List
dictionary_sugar_get

A Quick Way to Initialize Objects from Dictionaries
compose

Composition of Functions
dictionary_sugar_inc_get

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

Chunk Vectors
dictionary_sugar_get_safe

A Quick Way to Initialize Objects from Dictionaries
get_private

Extract Private Fields of R6 Objects
formulate

Create Formulas
leanify_r6

Move all methods of an R6 Class to an environment
recycle_vectors

Recycle List of Vectors to Common Length
register_namespace_callback

Registers a Callback on Namespace load/unLoad Events
distinct_values

Get Distinct Values
extract_vars

Extract Variables from a Formula
insert_named

Insert or Remove Named Elements
map_values

Replace Elements of Vectors with New Values
did_you_mean

Suggest Alternatives
set_class

Set the Class
dictionary_sugar_inc_get_safe

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

Remove All Elements Out Of Bounds
modify_if

Selectively Modify Elements of a Vector
get_seed

Get the Random Seed
named_list

Create a Named List
get_private<-

Assign Value to Private Field
load_dataset

Retrieve a Single Data Set
format_bib

Format Bibentries in Roxygen
invoke

Invoke a Function Call
with_package

Execture code with a modified search path
%nin%

Negated in-operator
require_namespaces

Require Multiple Namespaces
hash_input

Hash Input
mlr_callbacks

Dictionary of Callbacks
transpose_list

Transpose lists of lists
set_names

Set Names
is_scalar_na

Check for a Single Scalar Value
named_vector

Create a Named Vector
ids

Extract ids from a List of Objects
unnest

Unnest List Columns
rcbind

Bind Columns by Reference
to_decimal

Convert a Vector of Bits to a Decimal Number
names2

A Type-Stable names() Replacement
reorder_vector

Reorder Vector According to Second Vector
rd_info

Helpers to Create Manual Pages
which_min

Index of the Minimum/Maximum Value, with Correction for Ties
mlr3misc-package

mlr3misc: Helper Functions for 'mlr3'
open_help

Opens a Manual Page
set_params

Modify Values of a Parameter Set
shuffle

Safe Version of Sample
sequence_helpers

Sequence Construction Helpers
str_collapse

Collapse Strings
topo_sort

Topological Sorting of Dependency Graphs
printf

Functions for Formatted Output and Conditions
str_trunc

Truncate Strings
rowwise_table

Row-Wise Constructor for 'data.table'
str_indent

Indent Strings
strip_srcrefs

Strip source references from objects
assert_callback

Assertions for Callbacks
as_factor

Convert to Factor
Context

Context
as_short_string

Convert R Object to a Descriptive String
calculate_hash

Calculate a Hash for Multiple Objects
Dictionary

Key-Value Storage
assert_ro_binding

Assertion for Active Bindings in R6 Classes
as_callback

Convert to a Callback
check_packages_installed

Check that packages are installed, without loading them
Callback

Callback
catn

Function for Formatted Output
crate

Isolate a Function from its Environment