Investigating Cryptocurrencies using R

July 15, 2017

(This article was first published on R-Chart, and kindly contributed to R-bloggers)

Cryptocurrencies are a fascinating phenomenon and excellent data source for analysis with R.  This post will introduce how to get a list of available currencies into R.  Wikipedia maintains a page with a list of cryptocurrencies.  These can be read from HTML into a data frame.

results = GET(“”)
doc = readHTMLTable(doc=content(results, “text”))

This list is not complete.  Also, an API would be preferable to reading a wiki page.  A publicly available API at provides similar information in JSON format.

response = fromJSON(‘’)
df = data.table::rbindlist(response$Data, fill=TRUE)

With a bit of shiny code, this data can be served up in a web application and published to… so you can skip the R coding and review the data here if you prefer:

To leave a comment for the author, please follow the link and comment on their blog: R-Chart. offers daily e-mail updates about R news and tutorials on topics such as: Data science, Big Data, R jobs, visualization (ggplot2, Boxplots, maps, animation), programming (RStudio, Sweave, LaTeX, SQL, Eclipse, git, hadoop, Web Scraping) statistics (regression, PCA, time series, trading) and more...

If you got this far, why not subscribe for updates from the site? Choose your flavor: e-mail, twitter, RSS, or facebook...

Comments are closed.

Search R-bloggers


Never miss an update!
Subscribe to R-bloggers to receive
e-mails with the latest R posts.
(You will not see this message again.)

Click here to close (This popup will not appear again)