June 2018

Merging spatial buffers in R

June 11, 2018 | aghaynes

I’m sure there’s a better way out there, but I struggled to find a way to dissolve polygons that touched/overlapped each other (the special case being buffers). For example,  using the osmdata package, we can download the polygons representing hospital buildings in Bern, Switzerland. library(osmdata) library(...
[Read more...]

R Tip: use isTRUE()

June 11, 2018 | John Mount

R Tip: use isTRUE(). A lot of R functions are type unstable, which means they return different types or classes depending on details of their values. For example consider all.equal(), it returns the logical value TRUE when the items being compared are equal: all.equal(1:3, c(1, 2, 3)) # [1] TRUE However, when ... [Read more...]

Anomaly Detection in R

June 11, 2018 | Perceptive Analytics

The World of Anomalies Imagine you are a credit card selling company and you know about a particular customer who makes a purchase of 25$ every week. You guessed this purchase is his fixed weekly rations but one day, this customer makes a different purchase of 700$. This development will not just ...
[Read more...]

Customizing time and date scales in ggplot2

June 11, 2018 | Lea Waniek

In the last post of this series we dealt with axis systems. In this post we are also dealing with axes but this time we are taking a look at the position scales of dates, time and datetimes. Since we at STATWORX are often forecasting – and thus plotting – time series, ...
[Read more...]

Why loops are slow in R

June 10, 2018 | Florian Privé

In this post, I talk about loops in R, why they can be slow and when it is okay to use them. Don’t grow objects Let us generate a matrix of uniform values (max changing for every column). gen_grow
[Read more...]

Easy APA Formatted Bayesian Correlation

June 10, 2018 | Dominique Makowski

Traditional Correlation Bayesian APA formatted Correlation Indices Posterior Credits The Bayesian framework is the right way to go for psychological science. To facilitate its use for newcommers, we implemented the bayes_cor.test function in the psycho package, a user-friendly wrapper for the correlationBF function of the great BayesFactor package ...
[Read more...]

Sankey Diagram for the 2018 FIFA World Cup Forecast

June 10, 2018 | Achim Zeileis

The probabilistic forecast from the bookmaker consensus model for the 2018 FIFA World Cup is visualized in an interactive Sankey diagram, highlighting the teams' most likely progress through the tournament. Bookmaker consensus model Two weeks ago we published our Probabilistic Forecast for the 2018 FIFA World Cup: By adjusting quoted bookmakers’ odds ...
[Read more...]

RcppZiggurat 0.1.5

June 10, 2018 | Thinking inside the box

A maintenance release 0.1.5 of RcppZiggurat is now on the CRAN network for R. The RcppZiggurat package updates the code for the Ziggurat generator which provides very fast draws from a Normal distribution. The package provides a simple C++ wrapper class for the generator improving on the very basic macros, and ... [Read more...]

RcppGSL 0.3.6

June 10, 2018 | Thinking inside the box

A maintenance update 0.3.6 of RcppGSL is now on CRAN. The RcppGSL package provides an interface from R to the GNU GSL using the Rcpp package. Per a request from CRAN, we changed the vignette to accomodate pandoc 2.* just as we did with the most recen... [Read more...]
1 8 9 10 11 12 15

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)