farr: reusable code and teaching data
R
Teaching
Accounting research
Reproducibility
Originally shared on LinkedIn.
I recently released an update of the R package farr that provides data and code to support the book “Empirical Research in Accounting: Tools and Methods” to CRAN: farr on CRAN
The update was needed in part to address changes in the upstream data sources (current farr release notes).
One benefit of putting data and code in an R package is that a function can be introduced in one chapter and used in another without having to repeat the code or introduce dependencies between chapters. Also, it’s an easy way to distribute small-ish data sets to students.
Some of the functions and data might be of interest even for researchers not using the book, such as the winsorize() function and the GVKEY-CIK table, gvkey_ciks.