[ 
https://issues.apache.org/jira/browse/ARROW-3818?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16859984#comment-16859984
 ] 

Romain François commented on ARROW-3818:
----------------------------------------

this is no longer needed: 

{code:r}
library(arrow, warn.conflicts = FALSE)

batch <- record_batch(x = 1:2, y = 1:2)
tab <- table(batch, batch, batch)
tab
#> arrow::Table
as_tibble(tab)
#> # A tibble: 6 x 2
#>       x     y
#>   <int> <int>
#> 1     1     1
#> 2     2     2
#> 3     1     1
#> 4     2     2
#> 5     1     1
#> 6     2     2

# from a list of rbs
batches <- list(batch, batch, batch)
tab <- table(!!!batches)
tab
#> arrow::Table
as_tibble(tab)
#> # A tibble: 6 x 2
#>       x     y
#>   <int> <int>
#> 1     1     1
#> 2     2     2
#> 3     1     1
#> 4     2     2
#> 5     1     1
#> 6     2     2
{code}

Created on 2019-06-10 by the [reprex package|https://reprex.tidyverse.org] 
(v0.3.0.9000)

> [R] Table$from_batches
> ----------------------
>
>                 Key: ARROW-3818
>                 URL: https://issues.apache.org/jira/browse/ARROW-3818
>             Project: Apache Arrow
>          Issue Type: New Feature
>          Components: R
>            Reporter: Romain François
>            Priority: Major
>              Labels: pull-request-available
>          Time Spent: 1h 10m
>  Remaining Estimate: 0h
>




--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to