stat231-s23 / blog1-eco-friends

Cora Spelke, Sophia Price, Wendy Espinosa
0 stars 0 forks source link

printing the clusters #2

Open katcorr opened 1 year ago

katcorr commented 1 year ago

@cspelke

I updated the code in index.Rmd for the Arby's example to make a dataframe out of the cluster list so we could print it in a nicer format using kable(). I resorted to base R, so it's probably not the most efficient or legible way, but it works! I suggest you add column names that say something about the group rather than just "cluster 1", like I did for clusters 2 and 4 in the example. You can copy the code on lines 134-146 and update it for the other restaurants accordingly. If you have questions, just let me know!

@espinosawendy @SophPrice @cspelke Be sure to PULL the repo next time you open it to bring in my changes.