Blog Archives

Tip: Optimize your Rcpp loops

December 28, 2016
By
Tip: Optimize your Rcpp loops

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 different loci. Here, I will use...

Read more »

On the ifelse function

October 14, 2016
By

In this post, I will talk about the ifelse function, which behaviour can be easily misunderstood, as pointed out in my latest question on SO. I will try to show how it can be used, and misued. We will also check if it is as fast as we could expect from a vectorized base function of R. How can it...

Read more »

Making a team survey to get my colleagues hooked on R

October 6, 2016
By

In this post, I will talk about the presentation of R that I did today, in the first week of my PhD. Usually, it is a team-only presentation. Yet, other people came because they were interested in learning more about R. How I get this idea? I get the idea of doing an R presentation while reading Getting Your Colleagues Hooked...

Read more »

Showing a different approach to making statistical tests

September 5, 2016
By
Showing a different approach to making statistical tests

In this post, I will talk about an alternative way to choose quantiles (and more broadly, decision boundaries) for statistical tests, the ones you choose in order to have a 95% confidence interval (5% of type-I error). I will then show that this idea can be used to combine tests. I will use some illustrations in R to make...

Read more »

A website and blog for R users

August 18, 2016
By

In this post, I will show you how to quickly create your website, blog and first posts. This is designed for R users only. Philosophy This had to be free. This had to be easy. This had to only need RStudio and GitHub. Every content had to be preview...

Read more »

R package primefactr

August 9, 2016
By

In this post, I will present my first R package, available on CRAN. It makes use of Prime Factorization for computations. This small R package was initially developed to compute hypergeometric probabilities which are used in Fisher’s exact test, for instance. It was also a way to get introduced with CRAN submission :’). Installation and Attachment ## Installation install.packages("primefactr") ## Attachment library("primefactr") Features Main feature For instance, to...

Read more »

Sponsors

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)