Learn R Programming

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

8,532

Version

0.6.0

License

LGPL-3

Issues

Pull Requests

Stars

Forks

Maintainer

Michel Lang

Last Published

November 17th, 2020

Functions in mlr3misc (0.6.0)

crate

Isolate a Function from its Environment
is_scalar_na

Check for a Single Scalar Value
unnest

Unnest List Data Table Columns
named_vector

Create a Named Vector
names2

A Type-Stable names() Replacement
transpose_list

Transpose lists of lists
keep_in_bounds

Remove All Elements Out Of Bounds
enframe

Convert a Named Vector Into A data.table
extract_vars

Extract Variables from a Formula
leanify_r6

Move all methods of an R6 Class to an environment
load_dataset

Retrieve a Single Data Set
rd_info

Helpers to Create Manual Pages
compose

Composition of Functions
register_namespace_callback

Registers a Callback on Namespace load/unLoad Events
compute_mode

Compute The Mode
str_collapse

Collapse Strings
dictionary_sugar_get

A Quick Way to Initialize Objects from Dictionaries
str_indent

Indent Strings
chunk_vector

Chunk Vectors
map_values

Replace Elements of Vectors with New Values
did_you_mean

Suggest Alternatives
compat-map

Apply Functions in the spirit of 'purrr'
mlr3misc-package

mlr3misc: Helper Functions for 'mlr3'
%nin%

Negated in-operator
has_element

Check if an Object is Element of a List
insert_named

Insert or Remove Named Elements
ids

Extract ids from a List of Objects
encapsulate

Encapsulate Function Calls for Logging
check_packages_installed

Check that packages are installed, without loading them
named_list

Create a Named List
modify_if

Selectively Modify Elements of a Vector
sequence_helpers

Sequence Construction Helpers
distinct_values

Get Distinct Values
as_short_string

Convert R Object to a Descriptive String
invoke

Invoke a Function Call
printf

Functions for Formatted Output and Conditions
open_help

Opens a Manual Page
rcbind

Bind Columns by Reference
with_package

Execture code with a modified search path
which_min

Index of the Minimum/Maximum Value, with ties correction
Dictionary

Key-Value Storage
set_class

Set the Class
str_trunc

Truncate Strings
topo_sort

Topological Sorting of Dependency Graphs
as_factor

Convert to Factor
get_seed

Get the Random Seed
rowwise_table

Row-Wise Constructor for 'data.table'
formulate

Create Formulas
set_names

Set Names
require_namespaces

Require Multiple Namespaces
shuffle

Safe Version of Sample
cross_join

Cross-Join for data.table