July 2016

Data frame columns as arguments to dplyr functions

July 17, 2016 | Bruno Rodrigues

Suppose that you would like to create a function which does a series of computations on a data frame. You would like to pass a column as this function’s argument. Something like:
data(cars)


convertToKmh <- function(dataset, col_name){
  dataset$col_name <- dataset$speed * 1.609344
  return(dataset)
}
This example is obviously not very interesting (you don’t need a function for this), but ... [Read more...]

Generating Interactive Maps | Leaflet

July 17, 2016 | Abdalla

I’ve been trying to figure out how to generate interactive maps using R, and so naturally i’ve ended up spending an unhealthy amount of time scouring the web looking for a reasonably simple way of getting that done. Finally, I … Continue reading → [Read more...]

Birth Month by Gender

July 16, 2016 | Andrew Collier

Based on some feedback to a previous post I normalised the birth counts by the (average) number of days in each month. As pointed out by a reader, the results indicate a gradual increase in the number of conceptions during (northern hemisphere) Autumn and Winter, roughly up to the end ... [Read more...]

The cdlTools R package

July 15, 2016 | MeanMean

This is a brief tutorial on the cdlTools package developed by Lu Chen and I to download and perform some simple analysis on USDA's cropland data layer (CDL). This tutorial will cover downloading CDL data, obtaining some zonal statistics, and explore land cover change. This package is not currently available ... [Read more...]

The cdlTools R package

July 15, 2016 | MeanMean

This is a brief tutorial on the cdlTools package developed by Lu Chen and I to download and perform some simple analysis on USDA's cropland data layer (CDL). This tutorial will cover downloading CDL data, obtaining some zonal statistics, and explore land cover change. This package is not currently available ... [Read more...]

Quick plot of all variables

July 15, 2016 | Simon Jackson

This post will explain a data pipeline for plotting all (or selected types) of the variables in a data frame in a facetted plot. The goal is to be able to glean useful information about the distributions of each variable, without having to view one at a time and keep ...
[Read more...]

Time Series Analysis in ArcGIS

July 15, 2016 | Fabio Veronesi

In this post I will introduce another toolbox I created to show the functions that can be added to ArcGIS by using R and the R-Bridge technology.In this toolbox I basically implemented the functions I showed in the previous post about time series analysis in R.Once again I ...
[Read more...]

Time Series Analysis in ArcGIS

July 15, 2016 | Fabio Veronesi

In this post I will introduce another toolbox I created to show the functions that can be added to ArcGIS by using R and the R-Bridge technology.In this toolbox I basically implemented the functions I showed in the previous post about time series analy...
[Read more...]

How R is used at Microsoft

July 15, 2016 | David Smith

At the useR! conference last month, I was pleased to be able to give a couple of talks about the ways that Microsoft is using and integrating R. In my first talk, Hear, See, Move, I shared how data scientists at Microsoft are working to help the disabled: During the ... [Read more...]

Finish line (nearly)

July 15, 2016 | Gianluca Baio

We are very close to the finish line $-$ that's being able to finally submit the BCEA book to the editor (Springer).This has been a rather long journey, but I think the current version (I dread using the word "final" just yet...) is very good, I think. We've managed ...
[Read more...]

Finish line (nearly)

July 15, 2016 | Gianluca Baio

We are very close to the finish line $-$ that's being able to finally submit the BCEA book to the editor (Springer).This has been a rather long journey, but I think the current version (I dread using the word "final" just yet...) is very good, I think....
[Read more...]

Most Probable Birth Month

July 14, 2016 | Andrew Collier

In a previous post I showed that the data from www.baseball-reference.com support Malcolm Gladwell’s contention that more professional baseball players are born in August than any other month. Although this might be explained by the 31 July cutoff for admission to baseball leagues, it was suggested that it ... [Read more...]

Day Drinking with R

July 14, 2016 | Jasmine Dumas' R Blog

My first R package on CRAN, ttbbeer - After attending the useR! 2016 R Conference, I felt supercharged and armed with new insights and ideas about how to further contribute to the R community. I met wonderful people in real life (IRL) from twitter and heard interesting case studies about using ... [Read more...]

Finish line (nearly)

July 14, 2016 | R on Gianluca Baio

We are very close to the finish line $-$ that’s being able to finally submit the BCEA book to the editor (Springer). This has been a rather long journey, but I think the current version (I dread using the word “final” just yet…) is very good, I think. We’...
[Read more...]

New Open Course: Statistical Inference with swirl

July 14, 2016 | DataCamp Blog

New Free Course: Statistical Inference with swirl The DataCamp team is excited to announce another course using swirl. This free course adapts the Statistical Inference curriculum from swirl to the interactive DataCamp in-browser interface. Log-on and get started!  This course begins with an introduction to probability, then moves on to ... [Read more...]

TLS for RStudio and Shiny using Let’s Encrypt

July 14, 2016 | Brandon Bertelsen

Below is a very simple way to have https connections for the open source version of RStudio Server and Shiny Server. sudo apt-get install docker sudo apt-get install python-pip sudo pip install docker-compose Now, in your user directory, create a text file using your preferred text editor, called docker-compose.yml [Read more...]
1 6 7 8 9 10 17

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)