Back to Browse

How to Include Data in Your R Package

10.9K views
Sep 20, 2021
15:59

Including data in an R package can be very useful. Here we create an R package from scratch that offers a function to calculate a user-defined customer score from strictly defined variable names. To showcase the function, we need data, so we include an example dataset in the package and document it using roxygen tags. Data documentation is somewhat different to function documentation. We use the great usethis package for our convenience. To find out more, read the great R Packages book by Hadley Wickham and Jenny Bryan: https://r-pkgs.org/index.html Contact me, e. g. to discuss (online) R workshops / trainings / webinars: LinkedIn: https://www.linkedin.com/in/wolfriepl/ Twitter: https://twitter.com/StatistikInDD Xing: https://www.xing.com/profile/Wolf_Riepl Facebook: https://www.facebook.com/statistikdresden/ https://statistik-dresden.de/kontakt R Workshops: https://statistik-dresden.de/r-schulungen Blog (German, translate option): https://statistik-dresden.de/statistik-blog Playlist: Music chart history https://www.youtube.com/playlist?list=PL4ZUlAlk7QidRlzHEiHX09htXMAbxTpjW

Download

0 formats

No download links available.

How to Include Data in Your R Package | NatokHD