These functions create type objects corresponding to Arrow types. Use them
when defining a schema() or as inputs to other types, like struct. Most
of these functions don't take arguments, but a few do.
For time/timestamp types, the time unit. time32() can take
either "s" or "ms", while time64() can be "us" or "ns". timestamp() can
take any of those four values.
timezone
For timestamp(), an optional time zone string.
precision
For decimal(), precision
scale
For decimal(), scale
type
For list_of(), a data type to make a list-of-type
...
For struct(), a named list of types to define the struct columns
Value
An Arrow type object inheriting from DataType.
Details
A few functions have aliases:
utf8() and string()
float16() and halffloat()
float32() and float()
bool() and boolean()
Called from schema() or struct(), double() also is supported as a
way of creating a float64()
date32() creates a datetime type with a "day" unit, like the R Date
class. date64() has a "ms" unit.
See Also
dictionary() for creating a dictionary (factor-like) type.