Learn R Programming

⚠️There's a newer version (0.15.1) 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

7,441

Version

0.15.0

License

LGPL-3

Issues

Pull Requests

Stars

Forks

Maintainer

Last Published

April 10th, 2024

Functions in mlr3misc (0.15.0)

count_missing

Count Missing Values in a Vector
clbk

Syntactic Sugar for Callback Construction
compose

Composition of Functions
capitalize

Capitalize the First Letter of Strings
crate

Isolate a Function from its Environment
compat-map

Apply Functions in the spirit of 'purrr'
check_packages_installed

Check that packages are installed, without loading them
compute_mode

Compute The Mode
chunk_vector

Chunk Vectors
dictionary_sugar_inc_get_safe

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

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

Cross-Join for data.table
encapsulate

Encapsulate Function Calls for Logging
distinct_values

Get Distinct Values
catn

Function for Formatted Output
extract_vars

Extract Variables from a Formula
did_you_mean

Suggest Alternatives
dictionary_sugar_get

A Quick Way to Initialize Objects from Dictionaries
dictionary_sugar_get_safe

A Quick Way to Initialize Objects from Dictionaries
dictionary_sugar_inc_get

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

Hash Input
ids

Extract ids from a List of Objects
has_element

Check if an Object is Element of a List
keep_in_bounds

Remove All Elements Out Of Bounds
insert_named

Insert or Remove Named Elements
get_seed

Get the Random Seed
is_scalar_na

Check for a Single Scalar Value
modify_if

Selectively Modify Elements of a Vector
mlr_callbacks

Dictionary of Callbacks
printf

Functions for Formatted Output and Conditions
mlr3misc-package

mlr3misc: Helper Functions for 'mlr3'
get_private<-

Assign Value to Private Field
map_values

Replace Elements of Vectors with New Values
rd_info

Helpers to Create Manual Pages
get_private

Extract Private Fields of R6 Objects
open_help

Opens a Manual Page
rcbind

Bind Columns by Reference
invoke

Invoke a Function Call
named_vector

Create a Named Vector
recycle_vectors

Recycle List of Vectors to Common Length
named_list

Create a Named List
register_namespace_callback

Registers a Callback on Namespace load/unLoad Events
rowwise_table

Row-Wise Constructor for 'data.table'
sequence_helpers

Sequence Construction Helpers
names2

A Type-Stable names() Replacement
shuffle

Safe Version of Sample
to_decimal

Convert a Vector of Bits to a Decimal Number
set_params

Modify Values of a Parameter Set
topo_sort

Topological Sorting of Dependency Graphs
str_trunc

Truncate Strings
strip_srcrefs

Strip source references from objects
%nin%

Negated in-operator
formulate

Create Formulas
str_collapse

Collapse Strings
str_indent

Indent Strings
set_class

Set the Class
format_bib

Format Bibentries in Roxygen
reorder_vector

Reorder Vector According to Second Vector
leanify_r6

Move all methods of an R6 Class to an environment
require_namespaces

Require Multiple Namespaces
load_dataset

Retrieve a Single Data Set
set_names

Set Names
transpose_list

Transpose lists of lists
unnest

Unnest List Columns
which_min

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

Execture code with a modified search path
call_back

Call Callbacks
Context

Context
as_callback

Convert to a Callback
as_factor

Convert to Factor
assert_callback

Assertions for Callbacks
calculate_hash

Calculate a Hash for Multiple Objects
Dictionary

Key-Value Storage
Callback

Callback
as_short_string

Convert R Object to a Descriptive String
assert_ro_binding

Assertion for Active Bindings in R6 Classes