Package: mlr3misc 0.15.1

Michel Lang

mlr3misc: Helper Functions for 'mlr3'

Frequently used helper functions and assertions used in 'mlr3' and its companion packages. Comes with helper functions for functional programming, for printing, to work with 'data.table', as well as some generally useful 'R6' classes. This package also supersedes the package 'BBmisc'.

Authors:Michel Lang [cre, aut], Patrick Schratz [aut]

mlr3misc_0.15.1.tar.gz
mlr3misc_0.15.1.zip(r-4.5)mlr3misc_0.15.1.zip(r-4.4)mlr3misc_0.15.1.zip(r-4.3)
mlr3misc_0.15.1.tgz(r-4.4-x86_64)mlr3misc_0.15.1.tgz(r-4.4-arm64)mlr3misc_0.15.1.tgz(r-4.3-x86_64)mlr3misc_0.15.1.tgz(r-4.3-arm64)
mlr3misc_0.15.1.tar.gz(r-4.5-noble)mlr3misc_0.15.1.tar.gz(r-4.4-noble)
mlr3misc_0.15.1.tgz(r-4.4-emscripten)mlr3misc_0.15.1.tgz(r-4.3-emscripten)
mlr3misc.pdf |mlr3misc.html
mlr3misc/json (API)
NEWS

# Install 'mlr3misc' in R:
install.packages('mlr3misc', repos = c('https://mlr-org.r-universe.dev', 'https://cloud.r-project.org'))

Peer review:

Bug tracker:https://github.com/mlr-org/mlr3misc/issues

On CRAN:

machine-learningmiscellaneousmlr3

132 exports 11 stars 4.90 score 5 dependencies 40 dependents 250 scripts 5.9k downloads

Last updated 3 months agofrom:a6a3e099af (on v0.15.1). Checks:OK: 9. Indexed: yes.

TargetResultDate
Doc / VignettesOKAug 29 2024
R-4.5-win-x86_64OKAug 29 2024
R-4.5-linux-x86_64OKAug 29 2024
R-4.4-win-x86_64OKAug 29 2024
R-4.4-mac-x86_64OKAug 29 2024
R-4.4-mac-aarch64OKAug 29 2024
R-4.3-win-x86_64OKAug 29 2024
R-4.3-mac-x86_64OKAug 29 2024
R-4.3-mac-aarch64OKAug 29 2024

Exports:%nin%as_callbackas_callbacksas_factoras_short_stringassert_callbackassert_callbacksassert_ro_bindingcalculate_hashcall_backCallbackcapitalizecatfcatncheck_packages_installedchunkchunk_vectorcite_bibclbkclbkscomposecompute_modeContextcount_missingcratecross_joindeframedetectDictionarydictionary_sugardictionary_sugar_getdictionary_sugar_get_safedictionary_sugar_inc_getdictionary_sugar_inc_get_safedictionary_sugar_inc_mgetdictionary_sugar_inc_mget_safedictionary_sugar_mgetdictionary_sugar_mget_safedid_you_meandiscarddistinct_valuesencapsulateenframeeveryextract_varsformat_bibformulateget_privateget_private<-get_seedhas_elementhash_inputidsimapimap_chrimap_dblimap_dtcimap_dtrimap_intimap_lglinsert_namedinvokeis_scalar_naiwalkkeepkeep_in_boundsleanify_packageleanify_r6load_datasetmapmap_atmap_bcmap_brmap_chrmap_dblmap_dtcmap_dtrmap_ifmap_intmap_lglmap_valuesmessagefmlr_callbacksmodify_atmodify_ifnamed_listnamed_vectornames2open_helppmappmap_chrpmap_dblpmap_dtcpmap_dtrpmap_intpmap_lglpwalkrcbindrd_format_packagesrd_format_rangerd_format_stringrd_inforecycle_vectorsregister_namespace_callbackremove_namedreorder_vectorrequire_namespacesrowwise_tableseq_along0seq_colseq_len0seq_rowset_classset_col_namesset_namesset_paramsshufflesomestopfstr_collapsestr_indentstr_truncstrip_srcrefsto_decimaltopo_sorttranspose_listunnestwalkwarningfwhich_maxwhich_minwith_package

Dependencies:backportscheckmatedata.tabledigestR6

Readme and manuals

Help Manual

Help pageTopics
mlr3misc: Helper Functions for 'mlr3'mlr3misc-package mlr3misc
Negated in-operator%nin%
Convert to a Callbackas_callback as_callback.Callback as_callbacks as_callbacks.Callback as_callbacks.list as_callbacks.NULL
Convert to Factoras_factor
Convert R Object to a Descriptive Stringas_short_string
Assertions for Callbacksassert_callback assert_callbacks
Assertion for Active Bindings in R6 Classesassert_ro_binding
Calculate a Hash for Multiple Objectscalculate_hash
CallbackCallback
Capitalize the First Letter of Stringscapitalize
Function for Formatted Outputcatn
Check that packages are installed, without loading themcheck_packages_installed
Chunk Vectorschunk chunk_vector
Syntactic Sugar for Callback Constructionclbk clbks
Apply Functions in the spirit of 'purrr'compat-map detect discard every imap imap_chr imap_dbl imap_dtc imap_dtr imap_int imap_lgl iwalk keep map map_at map_bc map_br map_chr map_dbl map_dtc map_dtr map_if map_if.default map_int map_lgl pmap pmap_chr pmap_dbl pmap_dtc pmap_dtr pmap_int pmap_lgl pwalk some walk
Composition of Functionscompose
Compute The Modecompute_mode
ContextContext
Count Missing Values in a Vectorcount_missing
Isolate a Function from its Environmentcrate
Cross-Join for data.tablecross_join
Key-Value StorageDictionary
A Quick Way to Initialize Objects from Dictionariesdictionary_sugar dictionary_sugar_get dictionary_sugar_mget
A Quick Way to Initialize Objects from Dictionariesdictionary_sugar_get_safe dictionary_sugar_mget_safe
A Quick Way to Initialize Objects from Dictionaries with Incremented IDdictionary_sugar_inc_get dictionary_sugar_inc_mget
A Quick Way to Initialize Objects from Dictionaries with Incremented IDdictionary_sugar_inc_get_safe dictionary_sugar_inc_mget_safe
Suggest Alternativesdid_you_mean
Get Distinct Valuesdistinct_values
Encapsulate Function Calls for Loggingencapsulate
Convert a Named Vector into a data.table and Vice Versadeframe enframe
Extract Variables from a Formulaextract_vars
Format Bibentries in Roxygencite_bib format_bib
Create Formulasformulate
Extract Private Fields of R6 Objectsget_private
Assign Value to Private Fieldget_private<-
Get the Random Seedget_seed
Check if an Object is Element of a Listhas_element
Hash Inputhash_input hash_input.data.table hash_input.default hash_input.function
Extract ids from a List of Objectsids
Insert or Remove Named Elementsinsert_named insert_named.data.frame insert_named.data.table insert_named.default insert_named.environment insert_named.NULL remove_named remove_named.data.frame remove_named.data.table remove_named.environment
Invoke a Function Callinvoke
Check for a Single Scalar Valueis_scalar_na
Remove All Elements Out Of Boundskeep_in_bounds
Move all methods of an R6 Class to an environmentleanify_package leanify_r6
Retrieve a Single Data Setload_dataset
Replace Elements of Vectors with New Valuesmap_values
Dictionary of Callbacksmlr_callbacks
Selectively Modify Elements of a Vectormodify_at modify_if
Create a Named Listnamed_list
Create a Named Vectornamed_vector
A Type-Stable names() Replacementnames2
Opens a Manual Pageopen_help
Functions for Formatted Output and Conditionscatf messagef printf stopf warningf
Bind Columns by Referencercbind
Helpers to Create Manual Pagesrd_format_packages rd_format_range rd_format_string rd_info
Recycle List of Vectors to Common Lengthrecycle_vectors
Registers a Callback on Namespace load/unLoad Eventsregister_namespace_callback
Reorder Vector According to Second Vectorreorder_vector
Require Multiple Namespacesrequire_namespaces
Row-Wise Constructor for 'data.table'rowwise_table
Sequence Construction Helperssequence_helpers seq_along0 seq_col seq_len0 seq_row
Set the Classset_class
Set Namesset_col_names set_names
Modify Values of a Parameter Setset_params
Safe Version of Sampleshuffle
Collapse Stringsstr_collapse
Indent Stringsstr_indent
Truncate Stringsstr_trunc
Convert a Vector of Bits to a Decimal Numberto_decimal
Topological Sorting of Dependency Graphstopo_sort
Transpose lists of liststranspose_list
Unnest List Columnsunnest
Index of the Minimum/Maximum Value, with Correction for Tieswhich_max which_min
Execture code with a modified search pathwith_package