Articles by Douglas E Rice

Comparing a MySQL Query with a Data Table in R

December 2, 2016 | Douglas E Rice

  Data tables are becoming an increasingly popular way of working with data sets in R. The syntax can become rather complex, but the framework is much faster and more flexible than other methods. The basic structure of a data table, though, if fairly intuitive–as it corresponds quite nicely with ...
[Read more...]

How to Summarize a Data Frame by Groups in R

November 30, 2016 | Douglas E Rice

Sometimes, when you’re analyzing a data set and you want to get a complete picture of it, you want calculate the metrics on all the observations for each variable. Let’s say, for example, that you run a small zoo and want to inventory the cost of all your ...
[Read more...]

5 Ways to Subset a Data Frame in R

November 29, 2016 | Douglas E Rice

Often, when you’re working with a large data set, you will only be interested in a small portion of it for your particular analysis. So, how do you sort through all the extraneous variables and observations and extract only those you need? Well, R has several ways of doing ...
[Read more...]

Nesting Functions in R with the Piping Operator

November 29, 2016 | Douglas E Rice

One of the most useful (and most popular) applications in R are the functions available in the dplyr package. With functions like select, filter, arrange, and mutate, you can restructure a data set to get it looking just the way you want it. The problem is that doing so can ...
[Read more...]

Create a Correlation Matrix in R

November 21, 2016 | Douglas E Rice

So, in my last post, I showed how to create two histograms from a certain data set and then how to plot the two variables to see if there is any relationship. Visually, it was easy to tell that there was a negative relationship between the weight of an automobile ...
[Read more...]

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)