Mh, this is interesting: dataf = r['[<-'](dataf, 'newcol', R.IntVector([1,2,3]))
=> Error in `[<-.data.frame`(list(a = 1:3, b = 4:6, mm = 1:3), "mm", 1:3) : argument "value" is missing, with no default (Same for '[[<-') dataf = r['$<-'](dataf, 'newcol', R.IntVector([1,2,3])) => OK I think what is needed is a rx, rx2 equivalent for $. Is there something like that in rpy2? Regards -- Carlos On Tue, Aug 21, 2012 at 1:56 PM, Carlos Pita <carlosjosep...@gmail.com> wrote: > Hi all, > > >>> empty.rx2["New"] = [str(item) for item in range(len(empty.rownames))] >>> RRuntimeError: Error in `[[<-.data.frame`(list(), "New", list("0", "1", >>> "2", > "3", "4", : argument "value" is missing, with no default >>> Anything I'm doing wrong? > >> Not necessarily; I think that you are reaching less "battle-tested" corners >> of rpy2 > > Was this already fixed? > >> Try using R's cbind() (column-bind) > > Could you provide a simple example? Sorry I'm new to R and to rpy2 so > I'm a little lost at this point. > > Regards > -- > Carlos ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ _______________________________________________ rpy-list mailing list rpy-list@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/rpy-list