Hi,
Peter, thanks for the clarification.
Mario, I was not looking to debate the pros and cons of each environment,
simply to point out that expecting mutually compatible functionality is not
generalizable, especially when third party authors can make structural changes
to their objects over t
Cool - thank you Peter!
@Marc: This is really not a tidyverse vs base-R debate and I personally
think that they should both work together for most parts. The common
environment is still R. But just to give you the full picture I also filed
a bug for tibbles (https://github.com/tidyverse/tibble/iss
I get the sentiment, but this is really just bad coding (on my own part, I
suspect), so we might as well just fix it...
-pd
> On 21 Nov 2020, at 17:42 , Marc Schwartz via R-devel
> wrote:
>
>
>> On Nov 21, 2020, at 10:55 AM, Mario Annau wrote:
>>
>> Hello,
>>
>> using the `unsplit()` func
Yes. Nevermind tibbles, the [rep(NA, len),] construction only happens to work
because len will always be >= the number of rows in value[[1L]], witness
> (1:10)[rep(NA, 20)]
[1] NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA
> (1:20)[rep(NA, 10)]
[1] NA NA NA NA NA NA NA NA NA NA N
> On Nov 21, 2020, at 10:55 AM, Mario Annau wrote:
>
> Hello,
>
> using the `unsplit()` function with tibbles currently leads to the
> following error:
>
>> mtcars_tb <- as_tibble(mtcars, rownames = NULL)
>> s <- split(mtcars_tb, mtcars_tb$gear)
>> unsplit(s, mtcars_tb$gear)
> Error: Must sub