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

9,017

Version

0.10.0

License

LGPL-3

Issues

Pull Requests

Stars

Forks

Maintainer

Michel Lang

Last Published

January 11th, 2022

Functions in mlr3misc (0.10.0)

as_factor

Convert to Factor
assert_ro_binding

Assertion for Active Bindings in R6 Classes
as_short_string

Convert R Object to a Descriptive String
compute_mode

Compute The Mode
extract_vars

Extract Variables from a Formula
count_missing

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

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

Get Distinct Values
has_element

Check if an Object is Element of a List
%nin%

Negated in-operator
ids

Extract ids from a List of Objects
encapsulate

Encapsulate Function Calls for Logging
open_help

Opens a Manual Page
require_namespaces

Require Multiple Namespaces
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
capitalize

Capitalize the First Letter of Strings
calculate_hash

Calculate a Hash for Multiple Objects
crate

Isolate a Function from its Environment
check_packages_installed

Check that packages are installed, without loading them
chunk_vector

Chunk Vectors
cross_join

Cross-Join for data.table
get_private

Extract Private Fields of R6 Objects
get_seed

Get the Random Seed
modify_if

Selectively Modify Elements of a Vector
rowwise_table

Row-Wise Constructor for 'data.table'
str_collapse

Collapse Strings
reorder_vector

Reorder Vector According to Second Vector
register_namespace_callback

Registers a Callback on Namespace load/unLoad Events
named_list

Create a Named List
load_dataset

Retrieve a Single Data Set
set_names

Set Names
shuffle

Safe Version of Sample
with_package

Execture code with a modified search path
str_indent

Indent Strings
insert_named

Insert or Remove Named Elements
map_values

Replace Elements of Vectors with New Values
invoke

Invoke a Function Call
mlr3misc-package

mlr3misc: Helper Functions for 'mlr3'
printf

Functions for Formatted Output and Conditions
rcbind

Bind Columns by Reference
compose

Composition of Functions
compat-map

Apply Functions in the spirit of 'purrr'
dictionary_sugar_get

A Quick Way to Initialize Objects from Dictionaries
to_decimal

Convert a Vector of Bits to a Decimal Number
str_trunc

Truncate Strings
named_vector

Create a Named Vector
names2

A Type-Stable names() Replacement
rd_info

Helpers to Create Manual Pages
topo_sort

Topological Sorting of Dependency Graphs
recycle_vectors

Recycle List of Vectors to Common Length
did_you_mean

Suggest Alternatives
transpose_list

Transpose lists of lists
formulate

Create Formulas
set_class

Set the Class
which_min

Index of the Minimum/Maximum Value, with Correction for Ties
unnest

Unnest List Columns
sequence_helpers

Sequence Construction Helpers
format_bib

Format Bibentries in Roxygen
Dictionary

Key-Value Storage