When I open a package, say ggplot2
, dataset like diamonds
are defined in my environment.
Is there a way to access the diamonds dataset without mutating my environment ? like
a <- ggplot2.data("diamonds")
Do you mean:
ggplot2::diamonds
See ?"::"
for more details.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With