Create an Arrow Scalar
Arguments
- x
An R vector, list, or
data.frame- type
An optionaldata type for
x. If omitted, the type will be inferred from the data.
Examples
scalar(pi)#> Scalar#> 3.141592653589793scalar(404)#> Scalar#> 404# If you pass a vector into scalar(), you get a list containing your itemsscalar(c(1,2,3))#> Scalar#> list<item: double>[1, 2, 3]scalar(9)==scalar(10)#> Scalar#> false