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") |
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" |
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.