diff --git a/a3.r b/apriori.r similarity index 93% rename from a3.r rename to apriori.r index 7e31fd0a51250a623e45864145fb348d5cef6f0b..4438ca92516b03fa836469ea811d5135009c7d78 100644 --- a/a3.r +++ b/apriori.r @@ -1,3 +1,12 @@ +### + # This was my work-in-progress attempt at implementing Apriori, using the algorithm from our class book. + # Currently only generates first level of frequent itemsets. + # + # Anyways, I reread our assignment and it turns out that R has packages, of which Apriori is already implemented in. + # So nothing here is actually needed. Saving file for future reference of using R. + ## + + # Clear console. cat('\014') diff --git a/documents/references.md b/documents/references.md index b12ce738171a2d64a4b5095b80bb79f628648bdc..c6822a2cf63873118a5a4d5752a98ddb0d691b9c 100644 --- a/documents/references.md +++ b/documents/references.md @@ -7,6 +7,11 @@ All references to external logic. Includes anything from stack overflow links to ## R +### R Packages and Apriori +Turns out that R has "packages", and they already have an implementation of Apriori. Hours wasted trying to implement it myself, rip.<br> +* <https://datascienceplus.com/implementing-apriori-algorithm-in-r/> +* <https://www.rdocumentation.org/packages/arules/versions/1.6-5/topics/apriori> + ### Run Entire Script in R Studio <https://stackoverflow.com/a/12766667> @@ -14,7 +19,7 @@ All references to external logic. Includes anything from stack overflow links to <https://stackoverflow.com/a/16084793> ### Run R Script in Terminal -Because RStudio seems like a pretty bad IDE. Surprisingly, Terminal + Sublime Text is better. +Because RStudio seems like a pretty bad IDE. Surprisingly, Terminal + Sublime Text is better.<br> <https://support.rstudio.com/hc/en-us/articles/218012917-How-to-run-R-scripts-from-the-command-line> ### Alternative to the "Print" Function