Skip to content
Prev 308092 / 398503 Next

List of Levels for all Factor variables

Using unlist() did not produce the result I wanted. I have a dataframe. I tried playing with the parameters of unlist but each time it just tried to return each observation.

unlist(x, recursive = TRUE, use.names = TRUE)

Dan

-----Original Message-----
From: R. Michael Weylandt [mailto:michael.weylandt at gmail.com] 
Sent: Tuesday, October 16, 2012 8:28 AM
To: Lopez, Dan
Cc: R help (r-help at r-project.org)
Subject: Re: [R] List of Levels for all Factor variables
On Tue, Oct 16, 2012 at 4:19 PM, Lopez, Dan <lopez235 at llnl.gov> wrote:
I think you want to unlist() the result of this call.

RMW