Posts specifically about R language including documentation, interesting applications, tips for beginners, tips for more advanced users and advice for developers

January New Data Packages

by Joseph Rickert As forecast, the number of R packages hosted on CRAN exceeded 10,000 in January. Dirk Eddelbuettel, who tracks what's happening on CRAN with his CRANberries site, called hurricaneexposure the 10,000th package in a tweet on January 27th. hurricaneexposure was one of two hundred and six new packages that arrived on CRAN in [...]

Some Notes on the Cauchy Distribution

by Joseph Rickert I have always been attracted to the capricious. So, it was no surprise that I fell for the Cauchy distribution at first sight. I had never seen such unpredictability! You might say that every distribution has its moments of unpredictability, but the great charm of Cauchy is that it has no moments. [...]

Three Tips for Training Excel Users in R

by Merav Yuravlivker, CEO of Data Society “I’m not a coder” or “I was never good at math” is a frequent refrain I hear when I ask professionals about their data analysis skills. Through popular culture and stereotypes, most people who don’t have a background in programming automatically underestimate their ability to create amazing things [...]

Reproducible Finance with R: ETF Country Exposure

by Jonathan Regenstein Today, we are going to tackle a project that has long been on my wish list: a Shiny app to take a fund or portfolio, analyze its exposure to different countries, and display those exposures on a world map. Now you know how exciting my wishlists are. Before describing our data importing/wrangling [...]

Reproducible Finance with R: Sector Correlations Shiny App

by Jonathan Regenstein In a previous post, we built an R Notebook that pulled in data on sector ETFs and allowed us to calculate the rolling correlation between a sector ETF and the S&P 500 ETF, whose ticker is SPY. Today, we’ll wrap that into a Shiny app that allows the user to choose a [...]

The R Formula Method: The Good Parts

by Max Kuhn Introduction The formula interface to symbolically specify blocks of data is ubiquitous in R. It is commonly used to generate design matrices for modeling function (e.g. lm). In traditional linear model statistics, the design matrix is the two-dimensional representation of the predictor set where instances of data are in rows and variable [...]

January ’17 Tips and Tricks

by Sean Lopp This month's collection of Tips and Tricks comes from an excellent talk given at the 2017 RStudio::Conf in Orlando by RStudio Software Engineer Kevin Ushey. The slides from his talk are embedded below and cover features from autocompletion to R Markdown shortcuts. Use the left and right arrow keys to change slides. [...]

R Markdown for the Enterprise

by Edgar Ruiz In the corporate world, spreadsheets and PowerPoint presentations still dominate as the tools used for analyzing and sharing information. So, it is not at all surprising that even when business analysts use R for the analytical heavy lifting, they frequently revert to using spreadsheets and slide decks to share their results. This [...]

Introducing sparklyr to the Madrid R User Group

by Carlos Ortega In the last meeting of 2016, the 40th in Madrid’s R Users Group five-year history, we had the opportunity to listen (via Skype) to a very interesting talk by Javier Luraschi, the main author of the package sparklyr. In our previous meeting, a colleague of the Community (José Luis Cañadas) made a [...]

Reproducible Finance with R: Sector Correlations

by Jonathan Regenstein Welcome to the first installation of reproducible finance for 2017. It's a new year, a new President takes office soon, and we could be entering a new political-economic environment. What better time to think about a popular topic over the last few years: equity correlations. Elevated correlations are important for several reasons [...]

Load More Posts