Re: [R] Assign a list to one column of data frame

2016-12-11 Thread Marlin JL.M
,1]  [,2] > [1,] 0.2481156 0.2138564 > [2,] 0.8598658 0.2898058 > [3,] 0.5854885 0.4084578 > > > Cheers, > Bert > > > Bert Gunter > > "The trouble with having an open mind is that people keep coming > along > and sticking things into it." > -- O

Re: [R] Assign a list to one column of data frame

2016-12-11 Thread Marlin JL.M
; > > Cheers, > Bert > > > Bert Gunter > > "The trouble with having an open mind is that people keep coming > along > and sticking things into it." > -- Opus (aka Berkeley Breathed in his "Bloom County" comic strip ) > > > O

[R] Assign a list to one column of data frame

2016-12-10 Thread Marlin JL.M
Dear all, I want to assign a list to one column of data.frame where the name of the column is a variable. I tried the following: Using R version 3.3.2 > df <- iris[1:3, ] > df # Sepal.Length Sepal.Width Petal.Length Petal.Width Species # 1 5.1 3.5 1.4 0.2 setos