Skip to content
Prev 171221 / 398503 Next

change attributes of all data.frame elements

On Fri, 20 Feb 2009, Philipp Pagel wrote:

            
Not so, they can be matrices or even data frames, and 'length' means 
NROW.  But arbitrarily removing dimensions does not seem wise.

In any case, anthing involving elments of a list (and a data frame is 
a list) is ulitimatly a list.

lapply(DF, as.vector)

might be as efficient a way as any to do this.
That would be a good idea -- an idea the posting guide has embraced.