# Codes for common Data Frame operations in R

[This article was first published on

Want to share your content on R-bloggers? click here if you have a blog, or here if you don't.

**R Language – the data science blog**, and kindly contributed to R-bloggers]. (You can report issue about the content on this page here)Want to share your content on R-bloggers? click here if you have a blog, or here if you don't.

Listed below are codes for some data frame operations that are good to have at your fingertips:

- Create an empty data.frame
- Sort a dataframe by column(s)
- Merge/Join data frames (inner, outer, left, right)
- Drop data frame columns by name
- Remove rows with NAs in data.frame
- Quickly reading very large tables as dataframes in R
- Drop factor levels in a subsetted data frame
- Convert R list to data frame
- Convert data.frame columns from factors to characters
- Extracting specific columns from a data frame

To

**leave a comment**for the author, please follow the link and comment on their blog:**R Language – the data science blog**.R-bloggers.com offers

**daily e-mail updates**about R news and tutorials about learning R and many other topics. Click here if you're looking to post or find an R/data-science job.

Want to share your content on R-bloggers? click here if you have a blog, or here if you don't.