romainfrancois commented on pull request #11369:
URL: https://github.com/apache/arrow/pull/11369#issuecomment-938786602


   ``` r
   library(arrow, warn.conflicts = FALSE)
   #> See arrow_info() for available features
   
   (c_str <- ChunkedArray$create(c("un", "deux"), c("trois", "quatre")))
   #> ChunkedArray
   #> [
   #>   [
   #>     "un",
   #>     "deux"
   #>   ],
   #>   [
   #>     "trois",
   #>     "quatre"
   #>   ]
   #> ]
   (v_str <- c_str$as_vector())
   #> [1] "un"     "deux"   "trois"  "quatre"
   .Internal(inspect(v_str))
   #> @7ff40fba23d0 16 STRSXP g0c0 [REF(65535)] 
arrow::ChunkedArray<0x7ff405e99268, string, 2 chunks, 0 nulls> len=4
   
   (c_int <- ChunkedArray$create(1:2, 3:5))
   #> ChunkedArray
   #> [
   #>   [
   #>     1,
   #>     2
   #>   ],
   #>   [
   #>     3,
   #>     4,
   #>     5
   #>   ]
   #> ]
   (v_int <- c_int$as_vector())
   #> [1] 1 2 3 4 5
   .Internal(inspect(v_int))
   #> @7ff40fbfe1a0 13 INTSXP g0c0 [REF(65535)] 
arrow::ChunkedArray<0x7ff405d14768, int32, 2 chunks, 0 nulls> len=5
   
   (c_dbl <- ChunkedArray$create(c(1, 2), c(3, 4, 5), c(6, 7, 8)))
   #> ChunkedArray
   #> [
   #>   [
   #>     1,
   #>     2
   #>   ],
   #>   [
   #>     3,
   #>     4,
   #>     5
   #>   ],
   #>   [
   #>     6,
   #>     7,
   #>     8
   #>   ]
   #> ]
   (v_dbl <- c_dbl$as_vector())
   #> [1] 1 2 3 4 5 6 7 8
   .Internal(inspect(v_dbl))
   #> @7ff40cfd8d08 14 REALSXP g0c0 [REF(65535)] 
arrow::ChunkedArray<0x7ff405d736d8, double, 3 chunks, 0 nulls> len=8
   ```
   
   <sup>Created on 2021-10-08 by the [reprex 
package](https://reprex.tidyverse.org) (v2.0.1.9000)</sup>


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to