carpentries-incubator / lesson-R-packaging

R Packaging
https://carpentries-incubator.github.io/lesson-R-packaging/
Other
5 stars 10 forks source link

Use `datasets.R` for adding information about data #56

Open PabRod opened 2 years ago

PabRod commented 2 years ago

Problem

We are including only one data set. This may obscure some questions, such as:

Solution

Store two data sets instead of one. One with the instructors names and another one with names from Star Wars. Document both from the same file, and name this file ./R/datasets.R.

bvreede commented 2 years ago

Another thought: instead of using data from instructors names, we can use e.g. the babynames package and sample it to get a list of names: sample(babynames::babynames$name, 100)

A fringe benefit is that we have another package that can be listed as a (suggested) dependency :)