Learn R Programming

⚠️There's a newer version (0.16.0) of this package.Take me there.

mlr3misc

Miscellaneous helper functions for mlr3.

Copy Link

Version

Install

install.packages('mlr3misc')

Monthly Downloads

8,821

Version

0.1.4

License

LGPL-3

Issues

Pull Requests

Stars

Forks

Maintainer

Michel Lang

Last Published

September 17th, 2019

Functions in mlr3misc (0.1.4)

chunk_vector

Chunk Vectors
has_element

Check if an Object is Element of a List
mlr3misc-package

mlr3misc: Helper Functions for 'mlr3'
get_seed

Get the Random Seed
map_values

Replace Elements of Vectors with New Values
rcbind

Bind Columns by Reference
require_namespaces

Require Multiple Namespaces
which_min

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

Sequence Construction Helpers
unnest

Unnest List Data Table Columns
rowwise_table

Row-Wise Constructor for 'data.table'
encapsulate

Encapsulate Function Calls for Logging
ids

Short helper to extract ids from a typed R6 list of ID-able objects.
%nin%

Negated in-operator
enframe

Convert a Named Vector Into A data.table
printf

Functions for Formatted Output and Conditions
insert_named

Insert or Remove Named Elements
named_list

Create a Named List
is_scalar_na

Check for a Single Scalar Value
invoke

Invoke a Function Call
str_indent

Indent Strings
modify_if

Selectively Modify Elements of a Vector
transpose_list

Transpose lists of lists
topo_sort

Topological Sorting of Dependency Graphs
str_trunc

Truncate Strings
extract_vars

Extract Variables from a Formula
set_names

Set Names
load_dataset

Retrieve a Single Data Set
set_class

Set the Class
keep_in_bounds

Remove All Elements Out Of Bounds
formulate

Create Formulas
named_vector

Create a Named Vector
names2

A Type-Stable names() Replacement
shuffle

Safe Version of Sample
str_collapse

Collapse Strings
as_factor

Convert to Factor
compute_mode

Compute The Mode
cross_join

Cross-Join for data.table
Dictionary

Key-Value Storage
distinct_values

Get Distinct Values
as_short_string

Convert R Object to a Descriptive String
compat-map

Apply Functions in the spirit of 'purrr'
did_you_mean

Suggest Alternatives
dictionary_sugar

A Quick Way to Initialize Objects from Dictionaries