mlr3 (version 0.1.0-9000)

cast_from_dict: Cast objects using a Dictionary

Description

Uses a dictionary to cast objects of a specific type of a Dictionary. Intended for package developers, internal use only.

Usage

cast_from_dict(x, type, dict, clone = FALSE, multiple = TRUE)

Arguments

`x`

:: (character() | list()) Object to cast.

`type`

:: character(1) Expected type of objects.

`dict`

:: Dictionary Expected type of objects.

`clone`

:: logical(1) Clone objects, if necessary. Default is FALSE.

`multiple`

:: logical(1) Cast multiple objects of type type or just a single one?

Value

Object of type type or list of objects of type type.