To provide a reproducible example of
an approach, a data set must often be provided. Instead of building an example data set,
I wish to use some of my own data. However this data can not be released. I wish to
replace variable (column) names and factor levels with uninformative place holders (eg.
V1....V5, L1....L5).
Is
an automated way to do this
available?
Ideally,
this would be done in R, taking in a data.frame and producing this anonymous
data.frame.
With such a data set, simply search
and replace variable names in your script and you have a publicly releasable
reproducible example.
Such a process
may increase the inclusion of appropriate data in reproducible examples and even the
inclusion of reproducible examples in questions, comments and bug
reports.
No comments:
Post a Comment