April 2019

Le Monde puzzle [#1099]

April 27, 2019 | xi'an

A simple 2×2 Le Monde mathematical puzzle: Arielle and Brandwein play a game out of two distinct even integers between 1500 and 2500,  and y. Providing one another with either the pair (x/2,y+x/2) or the pair (x+y/2,y/2) until they run out of even possibilities or exceed 6 rounds. When x=2304, ...
[Read more...]

More General Weighted Binning

April 27, 2019 | statcompute

You might be wondering what motivates me spending countless weekend hours on the MOB package. The answer is plain and simple. It is users that are driving the development work. After I published the wts_bin() function last week showing the impact of two-value weights on the monotonic binning outcome (... [Read more...]

Data Layout Exercises

April 27, 2019 | John Mount

John Mount, Nina Zumel; Win-Vector LLC 2019-04-27 In this note we will use five real life examples to demonstrate data layout transforms using the cdata R package. The examples for this note are all demo-examples from tidyr/demo/, and are mostly based on questions posted to StackOverflow. They represent ... [Read more...]

Robust measurement from a 2-way table

April 26, 2019 | David Firth

I work in a university.  My department runs degree courses that allow students a lot of flexibility in their choice of course “modules”.  (A typical student takes 8 modules per year, and is assessed separately on each module). After the exams are finished each year, we promise our students to look ... [Read more...]

Checking reverse dependencies: the tiny way

April 26, 2019 | mark

The tools package that comes with base R makes checking reverse dependencies super easy. Build your package tarball (the pkg_x.y.z.tar.gz file). R CMD build /your/package/location It is a good idea to make sure that the tarball is in a dedicated … Continue reading →
[Read more...]

DALEX for keras and parsnip

April 26, 2019 | smarterpoland

DALEX is a set of tools for explanation, exploration and debugging of predictive models. The nice thing about it is that it can be easily connected to different model factories. Recently Michal Maj wrote a nice vignette how to use DALEX with models created in keras (an open-source neural-network library ... [Read more...]

Shiny Modules (part 2): Share reactive among multiple modules

April 25, 2019 | ArData

On the previous post we showed why modules are usefull to build Shiny applications. We also saw a first minimal “Hello-World” example. It can get difficult to share reactive from/to modules. On this post we will see the 3 most common use cases of data workflow: Module → Application Application → Module ...
[Read more...]

March 2019: “Top 40” New CRAN Packages

April 25, 2019 | R Views

By my count, two hundred and thirty-three packages stuck to CRAN last month. I have tried to capture something of the diversity of the offerings by selecting packages in ten categories: Computational Methods, Data, Machine Learning, Medicine, Science, Shiny, Statistics, Time Series, Utilities, and Visualization. The Shiny category contains packages ...
[Read more...]

Couting Pairs

April 25, 2019 | Analysis of AFL

Saw a tweet from [@matt_pavlich](https://twitter.com/matt_pavlich) asking twitter roughly how many games he and David Mundy have played together. Thankfully, you don’t have to wonder anymore and you can reproduce the results yourself and do running counts for your favourite players!
library(tidyverse)
## ── Attaching packages ─────────────────────────── tidyverse 1.2.1 ──
## ✔ ggplot2 3.1.1       ✔ purrr   0.3.2  
## ✔ tibble  2.1.1       ✔ dplyr   0.8.0.1
## ✔ tidyr   0.8.3       ✔ stringr 1.4.0  
## ✔ readr   1.3.1       ✔ forcats 0.4.0
{{... [Read more...]
1 2 3 4 5 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)