Want to share your content on R-bloggers? click here if you have a blog, or here if you don't.
Yesterday I put up a post where I described how I scraped The International Bartenders Association (IBA) cocktails into csv and json format. Timothy Wolodzko had a reasonable question regarding this on Mastodon:
Two reasons:
- Data that’s not sitting in a CSV file make me a bit nervous.
- With data snugly in a CSV file, there are so many things you can do with it! 😁
For example one can put together an animated GIF with all the IBA cocktails:
Or one can put together a really fast animated GIF and make it pause when you click/touch it. Et voilà, cocktail roulette:
< video width="400" autoplay loop muted playsinline disablepictureinpicture onclick="this.paused ? this.play() : this.pause();"> < source src="https://sumsar.net/blog/things-to-do-iba-cocktails/iba-cocktails-fast.mp4" />Or one can take all of these cocktail descriptions and cram them into a four-page PDF:
Print this out and you’ll never be at loss for a good drink recipe! Prefer something more digital? Why not put all the IBA cocktails into a searchable table:
I assume there are many more things one could do with the IBA cocktails dataset, maybe even some data analysis, but this is what I could clobber together in an afternoon! Code for all of the above can be found here.
R-bloggers.com offers daily e-mail updates about R news and tutorials about learning R and many other topics. Click here if you're looking to post or find an R/data-science job.
Want to share your content on R-bloggers? click here if you have a blog, or here if you don't.