questioning This function was moved from costmodelr. The use case is unclear and as such this function may be removed from a later version.

is_scalar_numeric() checks for a given type and whether the vector is "scalar", that is, of length 1.

is_scalar_numeric(x)

Arguments

x

object to be tested.