Re: [R] data.frame with a column containing an array

2023-05-29 Thread Georg Kindermann
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!

Re: [R] data.frame with a column containing an array

2023-05-27 Thread Georg Kindermann
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

Re: [R] data.frame with a column containing an array

2023-05-26 Thread Bert Gunter
), , 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 > > >

Re: [R] data.frame with a column containing an array

2023-05-25 Thread Jeff Newmiller
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

Re: [R] data.frame with a column containing an array

2023-05-25 Thread Bert Gunter
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

Re: [R] data.frame with a column containing an array

2023-05-25 Thread Georg Kindermann
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

Re: [R] data.frame with a column containing an array

2023-05-09 Thread Georg Kindermann
[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

Re: [R] data.frame with a column containing an array

2023-05-09 Thread Bert Gunter
> 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

Re: [R] data.frame with a column containing an array

2023-05-09 Thread Bert Gunter
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

Re: [R] data.frame with a column containing an array

2023-05-09 Thread Georg Kindermann
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

Re: [R] data.frame with a column containing an array

2023-05-09 Thread Rui Barradas
À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