Convert a value to a scalar to opt-out of R default vector casting behavior.
This uses the jsonlite::unbox
function to "tag" the value as a scalar.
Source: R/atomic.R
as_scalar.Rd
Convert a value to a scalar to opt-out of R default vector casting behavior.
This uses the jsonlite::unbox
function to "tag" the value as a scalar.