I have installed the packages arules. How can I view the built-in dataset as usual?
I tried:
library(arules)
data(Groceries)
Groceries
While it only offer me:
transactions in sparse format with
9835 transactions (rows) and
169 items (columns)
What is sparse format?
The default R datasets included in the base R distributionIf you look at the package listing in the Packages panel, you will find a package called datasets. Simply check the checkbox next to the package name to load the package and gain access to the datasets.
Command data() will list all the datasets in loaded packages. The command data(phones) will load the data set phones into memory.
inspect(Adult)
inspect(Adult[1:10,1:10])
inspect(Groceries)
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