scalar: Create an Arrow Scalar

View source: R/expression.R

scalarR Documentation

Create an Arrow Scalar

Description

Create an Arrow Scalar

Usage

scalar(x, type = NULL)

Arguments

x

An R vector, list, or data.frame

type

An optional data type for x. If omitted, the type will be inferred from the data.

Examples

scalar(pi)
scalar(404)
# If you pass a vector into scalar(), you get a list containing your items
scalar(c(1, 2, 3))

scalar(9) == scalar(10)


arrow documentation built on Nov. 25, 2023, 1:09 a.m.