April 2018

tint 0.1.0

April 8, 2018 | Thinking inside the box

A new release of the tint package just arrived on CRAN. Its name expands from tint is not tufte as the package offers a fresher take on the Tufte-style for html and pdf presentations. This version adds support for the tufte-book latex style. The pack... [Read more...]

Animated Population Pyramids in R

April 8, 2018 | R on kieranhealy.org

Amateur demography week continues around here. Today we are looking at the population of England and Wales since 1961, courtesy of some data from the UK Office of National Statistics. We have data on population counts by age (in nice, detailed, yearly increments) broken down by sex. We’re going to ... [Read more...]

Dissecting R Package “Utility Belts”

April 8, 2018 | hrbrmstr

Many R package authors (including myself) lump a collection of small, useful functions into some type of utils.R file and usually do not export the functions since they are (generally) designed to work on package internals rather than expose their functionality via the exported package API. Just like Batman’...
[Read more...]

anomalize: Tidy Anomaly Detection

April 7, 2018 | business-science.io - Articles

We recently had an awesome opportunity to work with a great client that asked Business Science to build an open source anomaly detection algorithm that suited their needs. The business goal was to accurately detect anomalies for various marketing data consisting of website actions and marketing feedback spanning thousands of ... [Read more...]

Us Monthly Births

April 7, 2018 | R on kieranhealy.org

Yesterday I came across Aaron Penne’s collection of very nice data visualizations, one of which was of monthly births in the United States since 1933. He made a tiled heatmap of the data, taking care when calculating the average rate to correct for the varying number of days in different ... [Read more...]

G is for GLM Function

April 7, 2018 |

In the Beta post, I used linear regression and demonstrated how to request standardized regression coefficients (betas). You may remember that I mentioned in that post that there are other types of regression. Linear regression is used with a continouous outcome. But sometimes you want to predict outcomes that aren't ... [Read more...]

Sketch – Data Trivia

April 7, 2018 | Tony Hirst

A bit more tinkering with F1 data from the ergast db, this time trying to generating trivia / facts around races. The facts are identified using SQL queries: Some of the queries also embed query fragments, which I intend to develop further… I'm using knitr to generate Github flavoured markdown (gfm) ... [Read more...]

Simple Numerical Modeling in R – Part 2: Exercises

April 6, 2018 | Hanif Kusuma

In this exercise, we will continue to build our model from our previous exercise here, specifically to revise the errors that may be generated from the model, including rounding and truncating errors. Answers to these exercises are available here. If you obtained a different (correct) answer than those listed on ...
[Read more...]

Prediction Bands

April 6, 2018 | LeaRning Stats

Introduction In this post, we study a seemingly easy question; what is a 95% prediction interval in simple linear regression? We assume that our data comes from \[ y_i = 1 + 2x_i + \epsilon_i \] where \(\epsilon_i\) are iid normal with mean 0 and standard deviation 3. R Code for Prediction We can build ...
[Read more...]

R:case4base – reshape data with base R

April 6, 2018 | Jozef's Rblog

Contents Introduction How to use this article Basic wide to long reshape Basic long to wide reshape Advanced reshape Alternatives to base R TL;DR - Just want the code Exercises References Exercise answers Discuss the article Introduction This is the first post in the R:case4base series. The ... [Read more...]

R:case4base – reshape data with base R

April 6, 2018 | R Blog

Contents Introduction How to use this article Basic wide to long reshape Basic long to wide reshape Advanced reshape Alternatives to base R TL;DR - Just want the code Exercises References Exercise answers Discuss the article Introduction This is the first post in the R:case4base series. The ... [Read more...]

Airdrop delivery with A* pathfinding

April 6, 2018 | Laurens Geffert

This post is an event report and a quick walk through to a submission that I developed with a group of participants at an Alibaba / Met Office UK hackathon. We are using the A* algorithm with a couple of tweaks to route cargo balloons from London to a ...
[Read more...]

magrittr and wrapr Pipes in R, an Examination

April 6, 2018 | John Mount

Let’s consider piping in R both using the magrittr package and using the wrapr package. magrittr pipelines The magittr pipe glyph “%__%” is the most popular piping symbol in R. magrittr documentation describes %__% as follow. Basic piping: x %__% f is equivalent to f(x) x %__% f(y) is equivalent to ... [Read more...]
1 10 11 12 13 14 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)