5-min Lightning Talk for CascadiaRConf 2017
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
R
docs
img
man
tests
.Rbuildignore
.gitignore
DESCRIPTION
LICENSE
NAMESPACE
README.md
i18n_design_patterns.Rmd
i18n_design_patterns.html
i18nr.Rproj

README.md

Internationalizing an R application for model parameters that vary per country

5-min Lightning Talk for CascadiaRConf 2017

See:

or the HTML generated from that:

for the presentation notes.

Abstract

As an R developer, I sometimes need to parameterize functions, so that they can be re-used across different populations. One example is where model parameters vary across countries. This talk presents a coding idiom for internationalizing a function, where the output depends on the locale in which the sampling occurred. This idiom enables code reuse and enhances testability. I demonstrate the idiom with sample code from scoring an international student assessment.