r-help@r-project.org, "Jeff
Newmiller"
Betreff: Re: Re: Re: [R] data.frame with a column containing an array
Please refer to Jeff Newmiller's response. I believe that your further
exploration of indexing a data frame containing an array column
demonstrates his point: don't do it!
variables:
# $ id: int 1 2
# $ ar: int 1 2 3 4 5 6 7 8
Kind regards,
Georg
Gesendet: Donnerstag, 25. Mai 2023 um 19:15 Uhr
Von: "Bert Gunter"
An: "Georg Kindermann"
Cc: "Rui Barradas" , r-help@r-project.org
Betreff: Re: Re: [R] data.frame with a column containing
), , drop = FALSE] else x, :
> # corrupt data frame: columns will be truncated or padded with NAs
>
> str(DF[TRUE,])
> #'data.frame': 2 obs. of 2 variables:
> # $ id: int 1 2
> # $ ar: int 1 2 3 4 5 6 7 8
>
>
> Kind regards,
> Georg
>
>
>
be reported
>> somewhere else?
>>
>> Thanks!
>> Georg
>>
>>
>>
>> Gesendet: Dienstag, 09. Mai 2023 um 19:28 Uhr
>> Von: "Bert Gunter"
>> An: "Georg Kindermann"
>> Cc: "Rui Barradas" , r-help@r-proje
or or is it a bug which should be reported
> somewhere else?
>
> Thanks!
> Georg
>
>
>
> Gesendet: Dienstag, 09. Mai 2023 um 19:28 Uhr
> Von: "Bert Gunter"
> An: "Georg Kindermann"
> Cc: "Rui Barradas" , r-help@r-project.org
> Bet
So is this an expected behavior or is it a bug which should be reported
somewhere else?
Thanks!
Georg
Gesendet: Dienstag, 09. Mai 2023 um 19:28 Uhr
Von: "Bert Gunter"
An: "Georg Kindermann"
Cc: "Rui Barradas" , r-help@r-project.org
Betreff: Re: [R] data.fra
[1, 1:2, 1:2] 1 3 5 7
But it would be nice if something similar would also work with data.frame.
Georg
Gesendet: Dienstag, 09. Mai 2023 um 16:56 Uhr
Von: "Bert Gunter"
An: "Georg Kindermann"
Cc: "Rui Barradas" , r-help@r-project.org
Betreff: Re: [R] data.f
> Cheers,
> Bert
>
> On Tue, May 9, 2023 at 3:39 AM Georg Kindermann
> wrote:
>
>> Thanks!
>>
>> No, to be consistent with what I get with a matrix I think it should be
>> like:
>>
>> x <- data.frame(id = DFA$id[1])
>> x$ar <- DFA$ar[1, , , drop
ai 2023 um 09:32 Uhr
> Von: "Rui Barradas"
> An: "Georg Kindermann" , r-help@r-project.org
> Betreff: Re: [R] data.frame with a column containing an array
> Às 11:52 de 08/05/2023, Georg Kindermann escreveu:
> > Dear list members,
> >
> > when I create a d
09. Mai 2023 um 09:32 Uhr
Von: "Rui Barradas"
An: "Georg Kindermann" , r-help@r-project.org
Betreff: Re: [R] data.frame with a column containing an array
Às 11:52 de 08/05/2023, Georg Kindermann escreveu:
> Dear list members,
>
> when I create a data.frame con
Às 11:52 de 08/05/2023, Georg Kindermann escreveu:
Dear list members,
when I create a data.frame containing an array I had expected, that I get a
similar result, when subsetting it, like having a matrix in a data.frame. But
instead I get only the first element and not all values of the remaini
11 matches
Mail list logo