mlr3misc0.16.0 package

Helper Functions for 'mlr3'

as_callback

Convert to a Callback

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

calculate_hash

Calculate a Hash for Multiple Objects

call_back

Call Callbacks

Callback

Callback

capitalize

Capitalize the First Letter of Strings

catn

Function for Formatted Output

check_packages_installed

Check that packages are installed, without loading them

chunk_vector

Chunk Vectors

clbk

Syntactic Sugar for Callback Construction

compat-map

Apply Functions in the spirit of 'purrr'

compose

Composition of Functions

compute_mode

Compute The Mode

Context

Context

count_missing

Count Missing Values in a Vector

crate

Isolate a Function from its Environment

cross_join

Cross-Join for data.table

dictionary_sugar_get

A Quick Way to Initialize Objects from Dictionaries

dictionary_sugar_inc_get

A Quick Way to Initialize Objects from Dictionaries with Incremented I...

Dictionary

Key-Value Storage

did_you_mean

Suggest Alternatives

distinct_values

Get Distinct Values

encapsulate

Encapsulate Function Calls for Logging

enframe

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

extract_vars

Extract Variables from a Formula

format_bib

Format Bibentries in Roxygen

formulate

Create Formulas

get_private-set

Assign Value to Private Field

get_private

Extract Private Fields of R6 Objects

get_seed

Get the Random Seed

has_element

Check if an Object is Element of a List

hash_input

Hash Input

ids

Extract ids from a List of Objects

insert_named

Insert or Remove Named Elements

invoke

Invoke a Function Call

is_scalar_na

Check for a Single Scalar Value

keep_in_bounds

Remove All Elements Out Of Bounds

leanify_r6

Move all methods of an R6 Class to an environment

load_dataset

Retrieve a Single Data Set

map_values

Replace Elements of Vectors with New Values

mlr_callbacks

Dictionary of Callbacks

mlr3misc-package

mlr3misc: Helper Functions for 'mlr3'

modify_if

Selectively Modify Elements of a Vector

named_list

Create a Named List

named_vector

Create a Named Vector

names2

A Type-Stable names() Replacement

nin

Negated in-operator

open_help

Opens a Manual Page

printf

Functions for Formatted Output and Conditions

rcbind

Bind Columns by Reference

rd_info

Helpers to Create Manual Pages

recycle_vectors

Recycle List of Vectors to Common Length

register_namespace_callback

Registers a Callback on Namespace load/unLoad Events

reorder_vector

Reorder Vector According to Second Vector

require_namespaces

Require Multiple Namespaces

rowwise_table

Row-Wise Constructor for 'data.table'

sequence_helpers

Sequence Construction Helpers

set_class

Set the Class

set_names

Set Names

set_params

Modify Values of a Parameter Set

shuffle

Safe Version of Sample

str_collapse

Collapse Strings

str_indent

Indent Strings

str_trunc

Truncate Strings

strip_srcrefs

Strip source references from objects

to_decimal

Convert a Vector of Bits to a Decimal Number

topo_sort

Topological Sorting of Dependency Graphs

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

Frequently used helper functions and assertions used in 'mlr3' and its companion packages. Comes with helper functions for functional programming, for printing, to work with 'data.table', as well as some generally useful 'R6' classes. This package also supersedes the package 'BBmisc'.

  • Maintainer: Marc Becker
  • License: LGPL-3
  • Last published: 2024-11-28