As you advance in your R use past “canned” functions and packages made by others, you may want to take information from one R object for use in another. For example, you may want to estimate a linear model, then use the results of that esti...

As you advance in your R use past “canned” functions and packages made by others, you may want to take information from one R object for use in another. For example, you may want to estimate a linear model, then use the results of that esti...

Today's guest post comes from Winston Chang, a software developer at RStudio — ed. When it comes to making figures in R, you can use any font you like, as long as it's Helvetica, Times, or Courier. Using other fonts that are installed on your computer can seem an impossible task, especially if you want to save the output...

We’ve already briefly covered making a reproducible example, but I thought I’d go a little more in-depth on the very helpful function dput(). Whenever I am having trouble applying an operation to some R object, and need help, but want to av...

This guest post is by Alex Guazzelli, VP of Analytics at Zementis Inc. -- ed. PMML, the Predictive Model Markup Language, is the de facto standard to represent predictive analytics and data mining models. With PMML, it is extremely easy to move a predictive solution from one system to another, since it avoids proprietary issues and incompatibilities. Companies around...

The classic Pythagorean identity is: \(sin^2(\theta) + cos^2(\theta) =1 \) The binomial formula which calculates the probability of obtaining k tails when flipping a coin n times, with a assumed probability p for each trial is: \( P(E) = {n \choos...