862 search results for "how to import image file to r"

Simpler R coding with pipes > the present and future of the magrittr package

August 5, 2014
By
Simpler R coding with pipes > the present and future of the magrittr package

This is a guest post by Stefan Milton, the author of the magrittr package which introduces the %>% operator to R programming. Preface (by Tal Galili) I was first introduced to the %>% (a.k.a: pipe) operator in R, thanks to Hadley Wickham’s (fascinating) dplyr tutorial (link to the workshop’s material) at useR!2014. After several discussions during the conference (including one very

Read more »

GRAN and switchr can’t send you back in time, but they can send R (sort of)

August 5, 2014
By
GRAN and switchr can’t send you back in time, but they can send R (sort of)

Using package repositories to recreate the past, distribute the present, and protect against the future by Gabriel Becker (@groundwalkergmb) Bioinformatics and Computational Biology Genentech Research and Early Developmen 1. Have you ever needed to reach into the distant past … to recreate a years old result? Take - as an arbitrary example - Anders and Huber's paper on Differential...

Read more »

Guns are Cool – Differences between states

August 3, 2014
By
Guns are Cool – Differences between states

Last week my blog showed that there are differences between states in the shootingtracker database. This week it is attempted to understand why states are different. A number of variables were extracted from a few sources, among which gun laws, % ...

Read more »

Variable Selection in Market Segmentation: Clustering or Biclustering?

July 29, 2014
By
Variable Selection in Market Segmentation: Clustering or Biclustering?

Will you have that segmentation with one or two modes?The data matrix for market segmentation comes to us with two modes, the rows are consumers and the columns are variables. Clustering uses all the columns to transform the two-mode data matrix (row a...

Read more »

Fast-track publishing using the new R markdown – a tutorial and a quick look behind the scenes

July 29, 2014
By
Fast-track publishing using the new R markdown – a tutorial and a quick look behind the scenes

The new R Markdown (rmarkdown-package) introduced in Rstudio 0.98.978 provides some neat features by combining the awesome knitr-package and the pandoc-system. The system allows for some neat simplifications of the fast-track-publishing (ftp) idea using so called formats. I've created a new package, the Grmd-package, with an extension to the html_document format, called the docx_document. The formatter allows an almost...

Read more »

User Request – Shepards Classification of Sediments

July 25, 2014
By
User Request – Shepards Classification of Sediments

I received a request overnight on how to render the Shepard’s classification diagram, which is an alternative to the USDA’s textural soil classification. This is quite simple to produce (albeit a little tedious), however, before I walk through the script, immediately below, please see the final result (which you can compare to an original). The The post

Read more »

Things to try after useR! – Part 1: Deep Learning with H2O

July 25, 2014
By
Things to try after useR! – Part 1: Deep Learning with H2O

Annual R User Conference 2014The useR! 2014 conference was a mind-blowing experience. Hundreds of R enthusiasts and the beautiful UCLA campus, I am really glad that I had the chance to attend! The only problem is that, after a few days of non-stop R talks, I was (and still am) completely overwhelmed...

Read more »

Coherent population forecasting using R

July 23, 2014
By
Coherent population forecasting using R

This is an example of how to use the demography package in R for stochastic population forecasting with coherent components. It is based on the papers by Hyndman and Booth (IJF 2008) and Hyndman, Booth and Yasmeen (Demography 2013). I will use Australian data from 1950 to 2009 and forecast the next 50 years. In demography, “coherent” forecasts are...

Read more »

Flood fill a region of an active device in R

July 23, 2014
By
Flood fill a region of an active device in R

The following is a function to "flood fill" a region on the active plotting device. Once called, the user will be asked to click on the desired target region. The flood fill algorithm then searches neighbors in 4 directions of the target cell (down, le...

Read more »

How to Choose an R-Trainer?

July 22, 2014
By
How to Choose an R-Trainer?

by James Peruvankal There are plenty of options if you want to learn R and are looking for training: your college’s statistics department, massive open online courses like Coursera, Udacity, edX, Datacamp etc. SiliconANGLE recently published an article about top R-training companies. Let’s talk about how to choose a good R-trainer. First and foremost is technical competency in R...

Read more »