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

11,681

Version

0.9.0

License

LGPL-3

Issues

Pull Requests

Stars

Forks

Maintainer

Michel Lang

Last Published

April 12th, 2021

Functions in mlr3misc (0.9.0)

compat-map

Apply Functions in the spirit of 'purrr'
as_factor

Convert to Factor
check_packages_installed

Check that packages are installed, without loading them
compute_mode

Compute The Mode
Dictionary

Key-Value Storage
as_short_string

Convert R Object to a Descriptive String
compose

Composition of Functions
count_missing

Count Missing Values in a Vector Same as sum(is.na(x)), but without the allocation.
chunk_vector

Chunk Vectors
crate

Isolate a Function from its Environment
encapsulate

Encapsulate Function Calls for Logging
format_bib

Format Bibentries in Roxygen
extract_vars

Extract Variables from a Formula
named_vector

Create a Named Vector
names2

A Type-Stable names() Replacement
dictionary_sugar_get

A Quick Way to Initialize Objects from Dictionaries
open_help

Opens a Manual Page
keep_in_bounds

Remove All Elements Out Of Bounds
is_scalar_na

Check for a Single Scalar Value
cross_join

Cross-Join for data.table
%nin%

Negated in-operator
enframe

Convert a Named Vector Into A data.table
ids

Extract ids from a List of Objects
rd_info

Helpers to Create Manual Pages
has_element

Check if an Object is Element of a List
did_you_mean

Suggest Alternatives
str_trunc

Truncate Strings
str_indent

Indent Strings
with_package

Execture code with a modified search path
register_namespace_callback

Registers a Callback on Namespace load/unLoad Events
insert_named

Insert or Remove Named Elements
shuffle

Safe Version of Sample
invoke

Invoke a Function Call
str_collapse

Collapse Strings
topo_sort

Topological Sorting of Dependency Graphs
formulate

Create Formulas
rowwise_table

Row-Wise Constructor for 'data.table'
require_namespaces

Require Multiple Namespaces
reorder_vector

Reorder Vector According to Second Vector
get_seed

Get the Random Seed
distinct_values

Get Distinct Values
named_list

Create a Named List
load_dataset

Retrieve a Single Data Set
modify_if

Selectively Modify Elements of a Vector
leanify_r6

Move all methods of an R6 Class to an environment
unnest

Unnest List Data Table Columns
sequence_helpers

Sequence Construction Helpers
map_values

Replace Elements of Vectors with New Values
printf

Functions for Formatted Output and Conditions
mlr3misc-package

mlr3misc: Helper Functions for 'mlr3'
rcbind

Bind Columns by Reference
set_class

Set the Class
transpose_list

Transpose lists of lists
which_min

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

Set Names