[R] Odp: data.frame: How to get the classes of all components and how to remove their factor structure?

2011-06-28 Thread Petr PIKAL
Hi Dear expeRts, I have two questions concerning data frames: (1) How can I apply the class function to each component in a data.frame? As you can see below, applying class to each column is not the right approach; applying it to each component seems bulky. (2) After transforming the

[R] Odp: data.frame: How to get the classes of all components and how to remove their factor structure?

2011-06-28 Thread Petr PIKAL
Dear expeRts, I have two questions concerning data frames: (1) How can I apply the class function to each component in a data.frame? As you can see below, applying class to each column is not the right approach; applying it to each component seems bulky. (2) After transforming the

Re: [R] Odp: data.frame: How to get the classes of all components and how to remove their factor structure?

2011-06-28 Thread Marius Hofert
Dear Petr, thanks for your posts, they perfectly answered my questions. Cheers, Marius On 2011-06-28, at 09:49 , Petr PIKAL wrote: Dear expeRts, I have two questions concerning data frames: (1) How can I apply the class function to each component in a data.frame? As you can see