0

We are building an r package to assess income inequality in survey data https://github.com/DjalmaPessoa/convey

I have about ten different public use microdata sets here - https://github.com/ajdamico/asdfree - that I would like to provide usage examples with dataset-specific vignettes. For the most part, the vignettes will be exactly the same, I just want a distinct vignette available for the different surveys. I only want a handful of things to vary across the vignette, like: title/vignette name, survey load script, survey design object name, income variable within dataset

The package we are writing has about a dozen different functions that I would like to demonstrate in a (seemingly for the user) dataset-specific manner across ten different public use files-- but I don't want to write ten nearly-identical vignettes

Is there a reasonable way to write a single document that will then auto-generate specific vignettes? I am thinking about something like a Microsoft mail merge, but am not sure what the equivalent would be here. Thanks!

Kayathiri
  • 779
  • 1
  • 15
  • 26
Anthony Damico
  • 5,779
  • 7
  • 46
  • 77

0 Answers0