Data frames examples in R

Hello!

I am new to R and while learning the basic code I would like to tackle real data and start asking questions and building models. Can anyone suggest other exercises besides the mpg and nycflights data frames from the tidyverse core?

Without any arguments, data() will show a list of every dataset offered by the packages you've loaded. For example:

library(dplyr)
library(RCurl)

# See a list of datasets from dplyr, RCurl, and the base "datasets" package
data()

If you're looking for packages with datasets, try the TeachingStatistics task view on CRAN. Sometimes, R users who write statistics lessons put the datasets used in a package. A list of some are in the "Packages associated with Statistics books" section.

Once you feel a little more daring, maybe check out the datasets on Kaggle.com.

Also, welcome to R!

3 Likes

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.