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: r-pkgs.org/index.html
Contact me, e. g. to discuss (online) R workshops / trainings / webinars:
LinkedIn: / wolfriepl
Twitter: / statistikindd
Xing: www.xing.com/profile/Wolf_Riepl
Facebook: / statistikdresden
statistik-dresden.de/kontakt
R Workshops: statistik-dresden.de/r-schulu...
Blog (German, translate option): statistik-dresden.de/statisti...
Playlist: Music chart history
• Music Chart History
Негізгі бет Ғылым және технология How to Include Data in Your R Package
Пікірлер: 15