# Monthly Archives: November 2016

## Create, Interpret, and Use a Linear Regression Model in R

November 29, 2016
By

In my last post, we looked at how to create a correlation matrix in R. Specifically, we used data pulled from the web to see which variables were most highly correlated with an automobile’s fuel economy. Suppose, however, that we are trying to guess the fuel economy of a new car without actually having driven

## Examine a Data Frame in R with 7 Basic Functions

November 29, 2016
By

When I first started learning R, it seemed way more complicated than what I was used to with looking at spreadsheets in Microsoft Excel. When I started working with data frames in R, it didn’t seem quite as easy to know what I was looking at. I’ve since come to see the light. While there is

## 5 Ways to Subset a Data Frame in R

November 29, 2016
By

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 this in a process it calls

## Nesting Functions in R with the Piping Operator

November 29, 2016
By

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 take multiple steps. As a

## Repeated measures ANOVA in R Exercises

November 29, 2016
By

One way, two way and n way ANOVA are used to test difference in means when we have one, two and n factor variables. A key assumption when performing these ANOVAs is that the measurements are independent. When we have repeated measures this assumption is violated, so we have to use repeated measures ANOVA. Repeated

## The Hitchhiker’s Guide to Ggplot2 in R

November 29, 2016
By

About the book This is a technical book. The scope of the book is to go straight to the point and the writing style is similar to a recipe with detailed instructions. It is assumed that you know the basics of R and that you want to learn how to c...

## DataChats: An interview with Garrett Grolemund

November 29, 2016
By

Hey R fans! We've just released a new episode of DataCamp's DataChats video series. Our first episode with Max Kuhn has already been watched over 700 times and this new episode promises to be a blockbuster as well.  In this second episode we inte...

## A new `subprocess` package for R

November 29, 2016
By

Here’s a new package that brings to R new API to handle child processes – similar to how Python handles them. Unlike the already available system() and system2() calls from the base package or the mclapply() function from the parallel package, this new API is aimed at handling long-lived child processes that can be controlled by the parent R process in a … More A new...

## Working at RStudio

November 28, 2016
By

...

## Seasonal Analysis in EGRET

November 28, 2016
By

Introduction This document describes how to obtain seasonal information from the R package EGRET - Exploration and Graphics for RivEr Trends: An R-package for the analysis of long-term changes in water quality and streamflow, including the water-quality method Weighted Regressions on Time, Discharge, and Season (WRTDS) For example, we might want to know the fraction of the load that takes place...