How to find datasets in packages?

Hi, to see the default datasets in RStudio I click on "Packages" and then scroll down to "System library" "datasets" but how can I find the datasets in a library? For example I know ggplot2 has "mpg" and "diamonds", "presidential".... but I´d like to see al the datasets available in ggplot2 or all the datasets available in my installed packages

If you do data() it lists the basic datasets and tell you how to do it.

data(package = .packages(all.available = TRUE))

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

If you have a query related to it or one of the replies, start a new topic and refer back with a link.