确定在 convert_array() 和 convert_array_stream() 中使用的默认 to 值。默认转换是
细节
null 到
vctrs::unspecified()boolean 到
logical()int8、uint8、int16、uint16 和 int13 到
integer()uint32、int64、uint64、float 和 double 到
double()string 和 large string 到
character()struct 到
data.frame()binary 和 large binary 到
blob::blob()list、large_list 和 fixed_size_list 到
vctrs::list_of()time32 和 time64 到
hms::hms()duration 到
difftime()date32 到
as.Date()timestamp 到
as.POSIXct()
通过为 to 指定显式值,可以进行其他转换。有关每个转换的详细信息,请参阅 convert_array()。
示例
infer_nanoarrow_ptype(as_nanoarrow_array(1:10))
#> integer(0)