Author Archives: mark

Make your package spherical

Larger packages typically consist of functions that are visible to the users (exported functions) and functions that are used by the exported functions, but that are invisible to the user. For example: # exported, user-visible function inch2cm <- function(x){ x*conversion_factor("inch") … Continue reading

Posted in programming, R, Uncategorized | Tagged , | Leave a comment

Checking reverse dependencies: the tiny way

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

Posted in programming, R | Tagged , , , | Leave a comment

gower 0.2.0 is on CRAN

A new version of R package gower has just been released on CRAN. Thanks to our new contributor David Turner who was kind enough to provide a pull request, gower now also computes weighted gower distances. From the NEWS file: … Continue reading

Posted in data cleaning, data correction methods, imputation, programming, R | 1 Comment

uRos2019: tutorials, keynote speakers, registration and call for papers!

The 7th use of R in Official Statistics conference is the event for all things R in the production and use of government statistics. The 7th installment of this conference will take place from 20 to 21 May 2019 at … Continue reading

Posted in official statistics, R | Tagged , , | Leave a comment

Add a static pdf vignette to an R package

Most vignettes are built when a package is built, but there are occasions where you just want to include a pdf. For example when you want to include a paper. Of course there is a package supporting this, but in … Continue reading

Posted in programming, R | Tagged , , | 1 Comment

The program for uRos2018 is online

The uRos2018 conference is aimed at professionals and academics who are involved in producing or consuming official (government) statistics. We are happy to announce that we recently posted the full program of the 6th international conference on the use of … Continue reading

Posted in official statistics, programming, R | Leave a comment

stringdist 0.9.5.1: now with C API

Version 0.9.5.1 of stringdist is on CRAN. The main new feature, with a huge thanks to our awesome new contributor Chris Muir, is that we made it easy to call stringdist functionality from your package's C or C++ code. The … Continue reading

Posted in data cleaning, programming, R, string metrics | 2 Comments

The use of R in official statistics conference 2018

On September 12-14 the 6th international conference on the use of R in official statistics (#uRos2018) will take place at the Dutch National Statistical Office in Den Haag, the Netherlands. The conference is aimed at producers and users of official … Continue reading

Posted in official statistics, R | Leave a comment

Track changes in data with the lumberjack %>>%

So you are using this pipeline to have data treated by different functions in R. For example, you may be imputing some missing values using the simputation package. Let us first load the only realistic dataset in R > data(retailers, … Continue reading

Posted in data cleaning, data manipulation, programming, R | Leave a comment

Announcing the simputation package: make imputation simple

I am happy to announce that my simputation package has appeared on CRAN this weekend. This package aims to simplify missing value imputation. In particular it offers standardized interfaces that make it easy to define both imputation method and imputation … Continue reading

Posted in data cleaning, data correction methods, imputation, programming, R | 5 Comments