# Articles by QuestionFlow

### Statistical uncertainty with R and pdqr

November 10, 2019 |

CRAN has accepted my 'pdqr' package. Here are important examples of how it can be used to describe and evaluate statistical uncertainty. Prologue I am glad to announce that my latest, long written R package ‘pdqr’ is accepted to CRAN. It provides tools for creating, transforming and summarizing custom random ... [Read more...]

### Local randomness in R

August 12, 2019 |

One approach of using random number generation inside a function without affecting outer state of random generator. Prologue Let’s say we have a deterministic (non-random) problem for which one of the solutions involves randomness. One very common example of such problem is a function minimization on certain interval: it ... [Read more...]

### Arguments of stats::density()

August 5, 2019 |

Animated illustrations of how arguments affect output of `stats::density()`. Prologue In R, one of the “go to” functions for kernel density estimation is density() from base R package ‘stats’. Given numeric sample, it returns a set of x-y pairs on estimated density curve. It is also a main “workhorse” ... [Read more...]

### Announcing pdqr

July 31, 2019 |

Announcing 'pdqr': package for working with custom distribution functions. Prologue I have been working on ‘pdqr’ package for quite some time now. Initially it was intended only for creating custom distribution functions (analogues of base “p”, “d”, “q”, and “r” functions) from numeric sample. However, after couple of breakthrough ideas, ... [Read more...]

### Transformers, glue!

August 20, 2018 |

General description of transformers functionality in {glue} with some potentially useful examples. Prologue Package {glue} is designed as “small, fast, dependency free” tools to “glue strings to data in R”. To put simply, it provides concise and flexible alternatives for paste() with some additional features:
```library(glue)

x <- 10
paste("I have", x, "apples.")
## [1] "I have 10 apples."
glue("I have {x} apples.")
## I have 10 apples.```

### Elo and EloBeta models in snooker

July 2, 2018 |

Research about adequacy of Elo based models applied to snooker match results. Contains a novel approach (EloBeta) targeted for sport results with variable "best of N" format. Prologue For many years I’ve been following snooker as a sport. It has it all: hypnotic beauty of smart play, elegance of ... [Read more...]

### Animating mode variability with tidyverse and tweenr

June 13, 2018 |

Provided different probability distributions, animate independent sample distributions to demonstrate mode variability. There is a thorough code description with some subtle tips and tricks. Prologue Not so long time ago I encountered the following task: given several groups of samples (one group - several samples from one distribution) make a ... [Read more...]

### Harry Potter and rankings with comperank

May 30, 2018 |

Ranking Harry Potter books with comperank package. Prologue Package comperank is on CRAN now. It offers consistent implementations of several ranking and rating methods. Originally, it was intended to be my first CRAN package when I started to build it 13 months ago. Back then I was very curious to learn ... [Read more...]

### General gems of comperes

May 16, 2018 |

Examples of exported functions from comperes package that could be useful for general tasks. Prologue I am very glad to announce that my new package comperes is on CRAN now. It provides tools for managing competition results in a tidy manner as much as possible. For more information go to: ... [Read more...]

### Harry Potter and competition results with comperes

May 8, 2018 |

Exploration of Harry Potter Books Survey results with help of my new comperes package. Prologue About a month ago I decided to add interesting data set to my almost finished (hopefully, soon to be on CRAN) comperes package. Data should represent results of some not ordinary competition. After some thought ... [Read more...]

### Struggle with Harry Potter Data

April 8, 2018 |

Notes about creation of Harry Potter Books Survey. It is not over, I need your help. Prologue Right now I am in the final stage of developing two packages devoted to results of abstract competitions (still not perfectly ready, so use with caution): comperes - infrastructure package for dealing with ... [Read more...]

### Tao of Tidygraph

March 5, 2018 |

Analysis of one interesting alliance graph within tidy network analysis framework. Prologue Quite some time ago I read the fantastic “Tao Te Programming” book by Patrick Burns. You can know this author from his everlasting work “The R Inferno”. “Tao Te Programming” is a vision about what a good programming ... [Read more...]

### Tao of Tidygraph

March 5, 2018 |

Analysis of one interesting alliance graph within tidy network analysis framework. Prologue Quite some time ago I read the fantastic “Tao Te Programming” book by Patrick Burns. You can know this author from his everlasting work “The R Inferno”. “Tao Te Programming” is a vision about what a good programming ... [Read more...]

### Combined outlier detection with dplyr and ruler

December 25, 2017 |

Overview of simple outlier detection methods with their combination using dplyr and ruler packages. Prologue During the process of data analysis one of the most crucial steps is to identify and account for outliers, observations that have essentially different nature than most other observations. Their presence can lead to untrustworthy ... [Read more...]

### Usage of ruler package

December 4, 2017 |

Usage examples of ruler package: dplyr-style exploration and validation of data frame like objects. Prologue My previous post tells a story about design of my ruler package, which presents tools for “… creating data validation pipelines and tidy reports”. This package offers a framework for exploring and validating data frame like ... [Read more...]

### Rule Your Data with Tidy Validation Reports. Design

November 27, 2017 |

The story about design of ruler package: dplyr-style exploration and validation of data frame like objects. Prologue Some time ago I had a task to write data validation code. As for most R practitioners, this led to exploration of present solutions. I was looking for a package with the following ... [Read more...]

November 19, 2017 |

Introduction to keyholder package. Tools for keeping track of information about rows. Prologue During development of my other R package (ruler), I encountered the following problem: how to track rows of data frame after application of some user defined function? It is assumed that this function takes data frame as ... [Read more...]

November 4, 2017 |

Computational overhead analysis of using generic+method approach instead of if-else sequence and switch statement. Prologue Earlier this week I came across this tweet from Thomas (author of many useful and powerful R packages): Should If else blocks that checks class always be converted to generic+methods? Please discuss #rstats— ... [Read more...]

### Highlight the Pipe. Pkgdown

October 28, 2017 |

Practical advices about customizing code highlighting on web pages created with pkgdown. Prologue It felt really nice to achieve custom code highlighting on this site with highlight.js (see this post). After that, I found myself working with pkgdown, one of many great Hadley’s packages. It is “designed to ... [Read more...]

### Highlight the Pipe. Highlight.js

October 19, 2017 |

Practical advices about customizing code highlighting on web pages with highlight.js. Prologue While creating this site I had to encounter the topic of highlighting code on web pages. I decided to do that with the help of highlight.js functionality. After picking a style with R in mind, I ... [Read more...]
1 2