1032 search results for "how to import image file to R"

Stop and Frisk: Spatial Analysis of Racial Discrepancies

June 23, 2015
By
Stop and Frisk: Spatial Analysis of Racial Discrepancies

In my last post, I compiled and cleaned publicly available data on over 4.5 million stops over the past 11 years. I also presented preliminary summary statistics showing that blacks had been consistently stopped 3-6 times more than whites over the last decade in NYC. Since the last post, I managed to clean and reformat the … Continue reading...

Read more »

New Shiny cheat sheet and video tutorial

June 22, 2015
By
New Shiny cheat sheet and video tutorial

We’ve added two new tools that make it even easier to learn Shiny. Video tutorial The How to Start with Shiny training video provides a new way to teach yourself Shiny. The video covers everything you need to know to build your own Shiny apps. You’ll learn: The architecture of a Shiny app A template

Read more »

Stop and Frisk: Blacks stopped 3-6 times more than Whites over 10 years

June 21, 2015
By
Stop and Frisk: Blacks stopped 3-6 times more than Whites over 10 years

The NYPD provides publicly available data on stop and frisks with data dictionaries, located here. The data, ranging from 2003 to 2014, contains information on over 4.5 million stops. Several variables such as the age, sex, and race of the person stopped are included. I wrote some R code to clean and compile the data … Continue reading...

Read more »

Organize a walk around London with R

June 21, 2015
By
Organize a walk around London with R

The subtitle of this post can be "How to plot multiple elements on interactive web maps in R".In this experiment I will show how to include multiple elements in interactive maps created using both plotGoogleMaps and leafletR. To complete the work prese...

Read more »

Fishing for packages in CRAN

June 18, 2015
By
Fishing for packages in CRAN

by Joseph Rickert It is incredibly challenging to keep up to date with R packages. As of today (6/16/15), there are 6,789 listed on CRAN. Of course, the CRAN Task Views are probably the best resource for finding what's out there. A tremendous amount of work goes into maintaining and curating these pages and we should all be grateful...

Read more »

Shiny Wool Skeins

June 15, 2015
By
Shiny Wool Skeins

Chaos is not a pit: chaos is a ladder (Littlefinger in Game of Thrones) Some time ago I wrote this post to show how my colleague Vu Anh translated into Shiny one of my experiments, opening my eyes to an amazing new world. I am very proud to present you the first Shiny experiment entirely … Continue reading...

Read more »

15 Easy Solutions To Your Data Frame Problems In R

June 11, 2015
By
15 Easy Solutions To Your Data Frame Problems In R

R’s data frames regularly create somewhat of a furor on public forums like Stack Overflow and Reddit. Starting R users often experience problems with the data frame in R and it doesn’t always seem to be straightforward. But does it really need to be so? Well, not necessarily. With today’s post, DataCamp wants to show The post

Read more »

Worrying About my Cholesterol Level

June 9, 2015
By
Worrying About my Cholesterol Level

The headline, "Don't Get Wrong Idea About Cholesterol", caught my attention in the 3 May, 2015 Times-Colonist newspaper here in Victoria, B.C.. In fact the article came from a syndicated column, published about a week earlier. No matter - it's always a good time for me to worry about my cholesterol!The piece was written by a certain 

Read more »

IPython Markdown Opportunities in IPython Notebooks and Rstudio

June 6, 2015
By
IPython Markdown Opportunities in IPython Notebooks and Rstudio

One of the reasons I started working on the Wrangling F1 Data With R book was to see what the Rmd (RMarkdown) workflow was like. Rmd allows you to combine markdown and R code in the same document, as well as executing the code blocks and then displaying the results of that code execution inline

Read more »

Cluster analysis on earthquake data from USGS

June 1, 2015
By
Cluster analysis on earthquake data from USGS

Theoretical BackgroundIn some cases we would like to classify the events we have in our dataset based on their spatial location or on some other data. As an example we can return to the epidemiological scenario in which we want to determine if the spread of a certain disease is affected by the presence of a particular source of...

Read more »