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

23,602

Version

0.9.1

License

LGPL-3

Issues

Pull Requests

Stars

Forks

Maintainer

Michel Lang

Last Published

April 28th, 2021

Functions in mlr3misc (0.9.1)

as_short_string

Convert R Object to a Descriptive String
Dictionary

Key-Value Storage
compose

Composition of Functions
chunk_vector

Chunk Vectors
as_factor

Convert to Factor
count_missing

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

Check that packages are installed, without loading them
compat-map

Apply Functions in the spirit of 'purrr'
compute_mode

Compute The Mode
cross_join

Cross-Join for data.table
dictionary_sugar_get

A Quick Way to Initialize Objects from Dictionaries
did_you_mean

Suggest Alternatives
mlr3misc-package

mlr3misc: Helper Functions for 'mlr3'
map_values

Replace Elements of Vectors with New Values
distinct_values

Get Distinct Values
invoke

Invoke a Function Call
modify_if

Selectively Modify Elements of a Vector
insert_named

Insert or Remove Named Elements
named_list

Create a Named List
formulate

Create Formulas
get_seed

Get the Random Seed
is_scalar_na

Check for a Single Scalar Value
rowwise_table

Row-Wise Constructor for 'data.table'
encapsulate

Encapsulate Function Calls for Logging
set_names

Set Names
set_class

Set the Class
crate

Isolate a Function from its Environment
leanify_r6

Move all methods of an R6 Class to an environment
format_bib

Format Bibentries in Roxygen
extract_vars

Extract Variables from a Formula
sequence_helpers

Sequence Construction Helpers
enframe

Convert a Named Vector Into A data.table
keep_in_bounds

Remove All Elements Out Of Bounds
load_dataset

Retrieve a Single Data Set
register_namespace_callback

Registers a Callback on Namespace load/unLoad Events
str_collapse

Collapse Strings
which_min

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

Safe Version of Sample
unnest

Unnest List Data Table Columns
rd_info

Helpers to Create Manual Pages
named_vector

Create a Named Vector
str_indent

Indent Strings
names2

A Type-Stable names() Replacement
%nin%

Negated in-operator
open_help

Opens a Manual Page
with_package

Execture code with a modified search path
str_trunc

Truncate Strings
ids

Extract ids from a List of Objects
has_element

Check if an Object is Element of a List
printf

Functions for Formatted Output and Conditions
rcbind

Bind Columns by Reference
require_namespaces

Require Multiple Namespaces
reorder_vector

Reorder Vector According to Second Vector
topo_sort

Topological Sorting of Dependency Graphs
transpose_list

Transpose lists of lists