[R] change attributes of all data.frame elements
p.pagel at wzw.tum.de
Fri Feb 20 17:39:57 CET 2009
On Fri, Feb 20, 2009 at 04:12:53PM +0000, Jarrod Hadfield wrote:
> I was wondering whether there was an easy way to change the attributes
> of all elements in a data.frame (rather than looping through elements)?
> Specifically, I would like to set the "dim" attributes to NULL
Maybe I just don't really understand what you are after. The elements
of a data.frame are vectors so by definition they only have one
dimension. Furthermore, they are required to be the same length -
otherwise it wouldn't be a proper data.frame, anymore.
So I guess you really want to accomplish something I didn't quite
grasp. Could you give an example?
Dr. Philipp Pagel
Lehrstuhl für Genomorientierte Bioinformatik
Technische Universität München
85350 Freising, Germany
More information about the R-help