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


   Further progress re FixedSizeList: 
   
   ``` r
   library(arrow, warn.conflicts = FALSE)
   
   a <- Array$create(list(1:4), type = fixed_size_list_of(int32(), 4L))
   a
   #> Array
   #> <fixed_size_list<item: int32>[4]>
   #> [
   #>   [
   #>     1,
   #>     2,
   #>     3,
   #>     4
   #>   ]
   #> ]
   
   # back to R
   a$as_vector()
   #> <fixed_size_list<integer, 4>[1]>
   #> [[1]]
   #> [1] 1 2 3 4
   str(a$as_vector())
   #> fixed_size_list<integer, 4> [1:1] 
   #> $ : int [1:4] 1 2 3 4
   #> @ list_size: int 4
   #> @ ptype    : int(0)
   ```
   
   <sup>Created on 2020-07-09 by the [reprex 
package](https://reprex.tidyverse.org) (v0.3.0.9001)</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.

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


Reply via email to