Learn R Programming

⚠️There's a newer version (0.17.0) of this package.Take me there.

mlr3misc

Package website: release | dev

Miscellaneous helper functions for mlr3.

Copy Link

Version

Install

install.packages('mlr3misc')

Monthly Downloads

9,430

Version

0.13.0

License

LGPL-3

Issues

Pull Requests

Stars

Forks

Maintainer

Michel Lang

Last Published

September 20th, 2023

Functions in mlr3misc (0.13.0)

call_back

Call Callbacks
capitalize

Capitalize the First Letter of Strings
count_missing

Count Missing Values in a Vector
crate

Isolate a Function from its Environment
catn

Function for Formatted Output
chunk_vector

Chunk Vectors
check_packages_installed

Check that packages are installed, without loading them
compute_mode

Compute The Mode
compose

Composition of Functions
dictionary_sugar_get_safe

A Quick Way to Initialize Objects from Dictionaries
clbk

Syntactic Sugar for Callback Construction
compat-map

Apply Functions in the spirit of 'purrr'
dictionary_sugar_inc_get

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

Cross-Join for data.table
dictionary_sugar_inc_get_safe

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

A Quick Way to Initialize Objects from Dictionaries
has_element

Check if an Object is Element of a List
get_seed

Get the Random Seed
names2

A Type-Stable names() Replacement
named_vector

Create a Named Vector
modify_if

Selectively Modify Elements of a Vector
enframe

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

Suggest Alternatives
extract_vars

Extract Variables from a Formula
invoke

Invoke a Function Call
is_scalar_na

Check for a Single Scalar Value
rd_info

Helpers to Create Manual Pages
mlr3misc-package

mlr3misc: Helper Functions for 'mlr3'
mlr_callbacks

Dictionary of Callbacks
recycle_vectors

Recycle List of Vectors to Common Length
distinct_values

Get Distinct Values
encapsulate

Encapsulate Function Calls for Logging
sequence_helpers

Sequence Construction Helpers
format_bib

Format Bibentries in Roxygen
set_class

Set the Class
get_private<-

Assign Value to Private Field
get_private

Extract Private Fields of R6 Objects
reorder_vector

Reorder Vector According to Second Vector
named_list

Create a Named List
register_namespace_callback

Registers a Callback on Namespace load/unLoad Events
printf

Functions for Formatted Output and Conditions
%nin%

Negated in-operator
rcbind

Bind Columns by Reference
ids

Extract ids from a List of Objects
insert_named

Insert or Remove Named Elements
formulate

Create Formulas
load_dataset

Retrieve a Single Data Set
str_indent

Indent Strings
map_values

Replace Elements of Vectors with New Values
set_names

Set Names
set_params

Modify Values of a Parameter Set
str_trunc

Truncate Strings
leanify_r6

Move all methods of an R6 Class to an environment
keep_in_bounds

Remove All Elements Out Of Bounds
open_help

Opens a Manual Page
rowwise_table

Row-Wise Constructor for 'data.table'
require_namespaces

Require Multiple Namespaces
str_collapse

Collapse Strings
shuffle

Safe Version of Sample
to_decimal

Convert a Vector of Bits to a Decimal Number
unnest

Unnest List Columns
transpose_list

Transpose lists of lists
topo_sort

Topological Sorting of Dependency Graphs
which_min

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

Execture code with a modified search path
as_callback

Convert to a Callback
Dictionary

Key-Value Storage
calculate_hash

Calculate a Hash for Multiple Objects
Callback

Callback
Context

Context
as_factor

Convert to Factor
as_short_string

Convert R Object to a Descriptive String
assert_callback

Assertions for Callbacks
assert_ro_binding

Assertion for Active Bindings in R6 Classes