R and the Level Function

I have been working with  R for 8 months and this weekend finally learned about the Levels Function. The levels function is important because it lets you control the order of categorical variables in a display other wise R will order by alphabet. This is especially helpful with charts.

I wish I had a better visual example but R hacking and problem solving did not lead to great documentation.

Additional Resources to help with factoring and levels in R: UCLA Institute for Digital Research and Education.

Advertisements
This entry was posted in Uncategorized. Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s