as_type {stencilaschema} | R Documentation |
Coerce a value to conform to the type Principally, marks values as scalar where possible
as_type(value, type)
value |
The value to coerce |
type |
The type to coerce it to |
The value, possibly coerced to the type