Return List of Data Sets in a Particular Package in R (Example Code)

In this R tutorial you’ll learn how to print a list of data sets in a certain package.

Example: Applying the data() Function to Get a List of Data Sets Contained in a Package

install.packages("dplyr")                     # Install & load dplyr package
library("dplyr")
data(package = "dplyr")$results[ , "Item"]    # Return list of data sets in dplyr
# [1] "band_instruments"  "band_instruments2" "band_members"      "starwars"          "storms"

Related Tutorials

Below, you can find some further resources that are similar to the topic of this page.

Leave a Reply

Your email address will not be published. Required fields are marked *

Fill out this field
Fill out this field
Please enter a valid email address.
You need to agree with the terms to proceed

Menu
Top