Re: [Rd] data frame method for as.table()

2016-05-23 Thread Ernest Adrogué
Hi, 2016-05-23, 12:50 (-0500); Marc Schwartz escriu: > Hi, > > I have not tried an exhaustive set of examples, but I believe that ?xtabs > will get you most of the way there, with the exception of NA handling, > which would require either nuanced use of ?addNA or preprocessing factors > in the in

Re: [Rd] data frame method for as.table()

2016-05-23 Thread Marc Schwartz
> On May 23, 2016, at 11:46 AM, Ernest Adrogué wrote: > > Hello, > > Currently it's possible to convert an object of class table to a data frame > with as.data.frame.table(), but there's no ready-made function, AFAIK, to do > the reverse operation, i.e. conversion of a data frame to a table. >

[Rd] data frame method for as.table()

2016-05-23 Thread Ernest Adrogué
Hello, Currently it's possible to convert an object of class table to a data frame with as.data.frame.table(), but there's no ready-made function, AFAIK, to do the reverse operation, i.e. conversion of a data frame to a table. Do you think it would be a good idea to add a data.frame method to as.