December 2016

Euler Problem 5: Smallest Multiple

December 29, 2016 | 0 Comments

Solution to Euler Problem 5 in the R Language for Statistical Computing: What is the smallest positive number that is evenly divisible by all of the numbers from 1 to 20? Continue reading → The post Euler Problem 5: Smallest Multiple appeared first on The Devil is in the Data. [Read more...]

Tip: Optimize your Rcpp loops

December 28, 2016 | 0 Comments

In this post, I will show you how to optimize your Rcpp loops so that they are 2 to 3 times faster than a standard implementation. Context Real data example For this post, I will use a big.matrix which represents genotypes for 15,283 individuals, corresponding to the number of mutations (0, 1 or 2) at 287,155 ...
[Read more...]

The Instant Rise of Machine Intelligence?

December 28, 2016 | 0 Comments

Currently the news are filled with articles about the rise of machine intelligence, artificial intelligence and deep learning. For the average reader it seems that there was this single technical breakthrough that made AI possible. While I strongly bel... [Read more...]

Tip: Optimize your Rcpp loops

December 28, 2016 | 0 Comments

In this post, I will show you how to optimize your Rcpp loops so that they are 2 to 3 times faster than a standard implementation. Context Real data example For this post, I will use a big.matrix which represents genotypes for 15,283 individuals, corresponding to the number of mutations (0, 1 or 2) at 287,155 ...
[Read more...]

Combine choropleth data with raster maps using R

December 28, 2016 | 0 Comments

Switzerland is a country with lots of mountains, and several large lakes. While the political subdivisions (called municipalities) cover the high mountains and lakes, nothing much of economic interest happens in these places. (Raclette and sailing are wonderful, but don't count for our purposes.) For this reason, the Swiss Federal ... [Read more...]

Exploratory Data Analysis Using R (Part-I)

December 28, 2016 | 0 Comments

The greatest value of a picture is when it forces us to notice what we never expected to see. — John W. Tukey. Exploratory Data Analysis.Why do we use exploratory graphs in data analysis?Understand data propertiesFind patterns in dataSuggest mod...
[Read more...]

Celebrating our 100th R exercise set

December 28, 2016 | 0 Comments

Yesterday we published our 100th set of exercises on R-exercises. Kudos and many thanks to Avi, Maria Elisa, Euthymios, Francisco, Imtiaz, John, Karolis, Mary Anne, Matteo, Miodrag, Paritosh, Sammy, Siva, Vasileios, and Walter for contributing so much great material to practice R programming! Even more thanks to Onno, who is ... [Read more...]

Authentication Proxy on Shiny Open Source

December 28, 2016 | 0 Comments

A year ago i wrote about a way to authenticate shiny with Auth0, using Apache: http://blog.datascienceheroes.com/adding-authentication-to-shiny-open-source-edition/ This method works but has some issues, Sebastian Peyrott has written an excellent new blogpost that explains how to add authentication to the Open Source edition of Shiny from scratch, [Read more...]

Making Shiny apps awesome

December 28, 2016 | 0 Comments

A week before Christmas our CTO, Marek Rogala gave a speech about ways to make Shiny apps do much more than usual during R enthusiasts meeting in Warsaw. In case you have missed this event we have published his presentation online: NOTE! in this pr... [Read more...]

add layer to specific panel of facet_plot output

December 28, 2016 | 0 Comments

This is a question from ggtree google group: Dear ggtree team, how can I apply a geom_xxx to only one facet panel? For example if i want to get geom_hline(yintersect=1:30) or a geom_text() in the dot panel? I cant see the facet_grid(. ~ var) function call, ...
[Read more...]

Behind the scenes of CRAN

December 27, 2016 | 0 Comments

(Just from my point of view as a package maintainer.)New users of R might not appreciate the full benefit of CRAN and new package maintainers may not appreciate the importance of keeping their packages updated and free of warnings and errors. This is something I only came to realize ... [Read more...]

More on Orthogonal Regression

December 27, 2016 | 0 Comments

Some time ago I wrote a post about orthogonal regression. This is where we fit a regression line so that we minimize the sum of the squares of the orthogonal (rather than vertical) distances from the data points to the regression line.Subsequently, I received the following email comment:"Thanks ... [Read more...]

Analyzing the 2015 California Health Interview Survey in R

December 27, 2016 | 0 Comments

A few years ago, I wrote about how to analyze the 2012 California Health Interview Survey in R. In 2012, plans for Covered California (Obamacare in California) were just beginning to take shape. Today, Covered California is a relatively mature program and it is arguably the most successful implementation of the Affordable ...
[Read more...]

List Vol.2 Exercises

December 27, 2016 | 0 Comments

Answers to the exercises are available here. Exercise 1 Consider 3 vectors, day, month and year: year=c(2005:2016) month=c(1:12) day=c(1:31) Define a list Date such as: Date= $year [1] 2005 2006 2007 2008 2009 2010 2011 2012 2013 2014 2015 2016 $month [1] 1 2 3 4 5 6 7 8 9 10 11 12 $day […] [Read more...]

Parallelizing Data Analytics on Azure with the R Interface Tool

December 27, 2016 | 0 Comments

by Le Zhang (Data Scientist, Microsoft) and Graham Williams (Director of Data Science, Microsoft) In data science, to develop a model with optimal performance, exploratory experiments on different sets of hyper-parameters are often performed. Preliminary analyses on smaller data can be performed on a single machine, while the experimental one ... [Read more...]

add layer to specific panel of facet_plot output

December 27, 2016 | 0 Comments

This is a question from ggtree google group: Dear ggtree team, how can I apply a geom_xxx to only one facet panel? For example if i want to get geom_hline(yintersect=1:30) or a geom_text() in the dot panel? I cant see the facet_grid(. ~ var) function call, ...
[Read more...]
1 2 3 4 18

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)