elp-boun...@r-project.org [mailto:r-help-boun...@r-project.org] On
> Behalf
> Of Kevin Zembower
> Sent: Friday, March 08, 2013 4:49 PM
> To: r-help@r-project.org
> Subject: [R] data.frame with variable-length list
>
> Hello,
>
> I'm trying to create a data frame w
Hi,
You could also try:
df1<-data.frame(name=c("a","b","c"),type=c(1,2,3),rtn=as.array(list(1:3,4:6,7:10)))
A.K.
- Original Message -
From: Kevin Zembower
To: r-help@r-project.org
Cc:
Sent: Friday, March 8, 2013 7:49 PM
Subject: [R] data.frame
pe: num 1 2 3
# $ rtn :List of 3
# ..$ : int 1 2 3
#..$ : int 4 5 6
.#.$ : int 7 8 9 10
A.K.
- Original Message -
From: Kevin Zembower
To: r-help@r-project.org
Cc:
Sent: Friday, March 8, 2013 7:49 PM
Subject: [R] data.frame with variable-length list
Hello,
I'm trying to create a
Hello,
I'm trying to create a data frame with three columns, one of which is a
variable-length list. I tried:
df <- data.frame(name = c("a", "b", "c"),
type=c(1, 2, 3),
rtn = c(list(1,2,3), list(4, 5,6), list(7,8,9, 10)
)
)
This would be useful,
4 matches
Mail list logo