Re: [Rpy] Is there an easy way to make a dataframe with different value lengths?

2012-04-03 Thread Artur Wroblewski
On Tue, Apr 3, 2012 at 5:12 PM, Laurent Gautier wrote: > On 2012-04-03 16:51, Dirk Eddelbuettel wrote: >> On 3 April 2012 at 15:31, Niek de Klein wrote: >> | Hi everyone, >> | >> | When I do: >> | >> | import rpy2.robjects as R >> | exampleDict = {'colum1':R.IntVector([1,2,3]), >> 'column2':R.Flo

Re: [Rpy] Is there an easy way to make a dataframe with different value lengths?

2012-04-03 Thread Niek de Klein
Alright, I'll just keep on adding the NA_Reals myself. Thanks to you both, Niek On Tue, Apr 3, 2012 at 5:12 PM, Laurent Gautier wrote: > On 2012-04-03 16:51, Dirk Eddelbuettel wrote: > > On 3 April 2012 at 15:31, Niek de Klein wrote: > > | Hi everyone, > > | > > | When I do: > > | > > | import

Re: [Rpy] Is there an easy way to make a dataframe with different value lengths?

2012-04-03 Thread Laurent Gautier
On 2012-04-03 16:51, Dirk Eddelbuettel wrote: > On 3 April 2012 at 15:31, Niek de Klein wrote: > | Hi everyone, > | > | When I do: > | > | import rpy2.robjects as R > | exampleDict = {'colum1':R.IntVector([1,2,3]), > 'column2':R.FloatVector([1,2]), > | 'column3':R.FloatVector([1,2,3,4])} > | R.Dat

Re: [Rpy] Is there an easy way to make a dataframe with different value lengths?

2012-04-03 Thread Dirk Eddelbuettel
On 3 April 2012 at 15:31, Niek de Klein wrote: | Hi everyone, | | When I do: | | import rpy2.robjects as R | exampleDict = {'colum1':R.IntVector([1,2,3]), 'column2':R.FloatVector([1,2]), | 'column3':R.FloatVector([1,2,3,4])} | R.DataFrame(exampleDict) | | I get the error that the rows are not o

[Rpy] Is there an easy way to make a dataframe with different value lengths?

2012-04-03 Thread Niek de Klein
Hi everyone, When I do: import rpy2.robjects as R exampleDict = {'colum1':R.IntVector([1,2,3]), 'column2':R.FloatVector([1,2]), 'column3':R.FloatVector([1,2,3,4])} R.DataFrame(exampleDict) I get the error that the rows are not of the same lenghts: "arguments imply differing number of rows: 2, 4