| [ Web Proxy ] |
| Viewing: https://arrow.apache.org/docs/python/generated/../../cpp/../r/articles/../reference/scalar.html | [Back] [Original] |
Create an Arrow Scalar
An R vector, list, or data.frame
An optional data type for x. If omitted, the type will be inferred from the data.
scalar(pi)
#> Scalar
#> 3.141592653589793
scalar(404)
#> Scalar
#> 404
# If you pass a vector into scalar(), you get a list containing your items
scalar(c(1, 2, 3))
#> Scalar
#> list<item: double>[1, 2, 3]
scalar(9) == scalar(10)
#> Scalar
#> false
| Web Proxy Viewer | New URL | Original Page |