Movatterモバイル変換


[0]ホーム

URL:


Skip to contents

Convert an object to an Arrow Array

Source:R/array.R
as_arrow_array.Rd

Theas_arrow_array() function is identical toArray$create() exceptthat it is an S3 generic, which allows methods to be defined in otherpackages to convert objects toArray.Array$create() is slightly fasterbecause it tries to convert in C++ before falling back onas_arrow_array().

Usage

as_arrow_array(x,..., type=NULL)# S3 method for class 'Array'as_arrow_array(x,..., type=NULL)# S3 method for class 'Scalar'as_arrow_array(x,..., type=NULL)# S3 method for class 'ChunkedArray'as_arrow_array(x,..., type=NULL)

Arguments

x

An object to convert to an Arrow Array

...

Passed to S3 methods

type

Atype for the final Array. A value ofNULLwill default to the type guessed byinfer_type().

Value

AnArray with typetype.

Examples

as_arrow_array(1:5)#> Array#> <int32>#> [#>   1,#>   2,#>   3,#>   4,#>   5#> ]

[8]ページ先頭

©2009-2026 Movatter.jp