From 729a6787d478955e1034b1ae6b7915cf7bfcb331 Mon Sep 17 00:00:00 2001
From: Brandon Rodriguez <brodriguez8774@gmail.com>
Date: Mon, 1 Jun 2020 09:48:09 -0400
Subject: [PATCH] Save progress before trying to figure out R packages

---
 a3.r => apriori.r       | 9 +++++++++
 documents/references.md | 7 ++++++-
 2 files changed, 15 insertions(+), 1 deletion(-)
 rename a3.r => apriori.r (93%)

diff --git a/a3.r b/apriori.r
similarity index 93%
rename from a3.r
rename to apriori.r
index 7e31fd0..4438ca9 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 b12ce73..c6822a2 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
-- 
GitLab