infer the arrow Array type from an R vector
type(x)
x | an R vector |
---|
an arrow logical type
type(1:10) #> Int32 #> int32 type(1L:10L) #> Int32 #> int32 type(c(1, 1.5, 2)) #> Float64 #> double type(c("A", "B", "C")) #> Utf8 #> string type(mtcars) #> StructType #> struct<mpg: double, cyl: double, disp: double, hp: double, drat: double, wt: double, qsec: double, vs: double, am: double, gear: double, carb: double> type(Sys.Date()) #> Date32 #> date32[day]