ThanksgivingMenu.R

Tasked with hosting my first thanksgiving dinner I worked out the menu with a few of the guests and first scrawled the basic outline on an index card (sorry picture taken with a potato).

rnzc8rd

 

When some guests I had not yet coordinated with wanted to know what they could bring that would not be redundant I was told to “just post the menu on the fb event”. So yesterday after I finished working and had poured myself a glass of whiskey I decided I was to lazy to format a nice document to post on the fb event, hence the production of the above photo.

Following continued imbibing last evening I decided to attempt to flex some of my developing R skills, that I had been working on all day, to a create digital menu for the event. Below is the result of my first pass, there is a lot more that could be done, for example, it appears I didn’t even get around to renaming the headers in the cbound matrix ‘menu’ but whatever, it gets the information across better then my chicken scratch hand writing and a low light photo.

e99wmrk

 

I wanted to share this because I thought it was a good example of some really basic beginner stuff that anyone could do in order to begin navigating through the sea of R. I’ve provided the code in markdown below should you want to try it yourself. I’m using RStudio in the screen shot however you can use your GUI or CLI of choice. I hope everyone enjoys their time off work (should you be lucky enough to get some)!


mains <- rbind("turkey", "ham","spaghetti squash","fish (gabor)")
sides <- rbind("mashed potatoes", "stuffing", "asparagus", "brussel sprouts")
apps <- rbind("empanadas (oscar)", "curry wurst", "turkey chili dog pigs in a blanket", "cheese and crackers")
cbind(mains, sides, apps)
menu <- cbind(mains,sides,apps)
View(menu)

Leave a Reply

Your email address will not be published.