This is a research associate’s blog about R and anything related to Data Science. The complete code for this blog and for some of the analyses can be found on my Github account.

I’m currently working at the University of Applied Sciences in Osnabrück where I am trying to make cutpoints more robust and teach Introductory Statistics. To make the former task more convenient I’ve authored the cutpointr R package.

R and Data Science Meetup Osnabrück

You’re surely interested in some data-heavy talks and free drinks, right? Then join us at our R and Data Science Meetup in Osnabrück!

What’s a subsettable closure!?

Well, actually, there’s no such thing as a “subsettable closure”. It’s a reference to the notorious error object of type 'closure' is not subsettable that has probably confused every R user at least once.

Usually, the error occurs because the user has (or has tried to) given a data frame the name of an existing function, e.g. sort. Then, for some reason, the data frame was removed, never created, has a typo in its name or is out of scope and the user tries to subset it using [. Since the data frame called sort is not found but there’s a function of the same name, R will try to subset the function and throws the error.

Additionally - what’s a closure anyway? Advanced R tells us that “An object is data with functions. A closure is a function with data.” — John D. Cook


Some blogs I find worth having a look at:

Econometrics Beat
Simply Statistics
No Hesitations
No Free Hunch
Data Robot
Systematic Investor
The Mathematical Investor
R-Bloggers (aggregator)
Data Tau (aggregator)