Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I access data in R without mutating the environment

Tags:

dataframe

r

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")
like image 981
nicolas Avatar asked Dec 04 '22 12:12

nicolas


1 Answers

Do you mean:

ggplot2::diamonds

See ?"::" for more details.

like image 128
csgillespie Avatar answered Apr 07 '23 10:04

csgillespie