Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add tests for data imports #314

Open
aspina7 opened this issue Jan 30, 2023 · 3 comments
Open

add tests for data imports #314

aspina7 opened this issue Jan 30, 2023 · 3 comments
Assignees

Comments

@aspina7
Copy link
Member

aspina7 commented Jan 30, 2023

neale added functions to have data and shapefiles available for datasets.
need to add tests.

@aspina7 aspina7 self-assigned this Jan 30, 2023
@aspina7
Copy link
Member Author

aspina7 commented Mar 29, 2023

These need to be moved to their own package with the raw datasets which are available through two routes:
As .rda files through data(blabla, package = "appliedepidata"), and through interactive point and click to save the original raw data on desktop (then import as conventionally).

The second requires functions and tests.

This should act as a single source of truth for all the datasets used in handbooks, tutorials, exercises and case studies.

Need a good way to include metadata (both in terms of description of dataset source and data dictionaries).

Ideally need a future way for this to be programming and human language interchangable.

https://stat.ethz.ch/R-manual/R-devel/library/datasets/html/00Index.html

https://github.com/rfordatascience/tidytuesday/blob/master/.github/pr_instructions.md

@aspina7
Copy link
Member Author

aspina7 commented Sep 2, 2024

@aspina7
Copy link
Member Author

aspina7 commented Sep 5, 2024

This has now been implemented in https://github.com/appliedepi/appliedepidata

This means that the following files can be deleted - and then {appliedepidata} needs to be added as a dependency.

R folder:

  • AJS_linelist_internal.R
  • AJS_pop_internal.R
  • download_datasets.R
  • shape_block_internal.R
  • shape_quartier_internal.R

data folder:

  • AJS_linelist_internal.rda
  • AJS_pop_internal.rda
  • shape_block_internal.rda
  • shape_quartier_internal.rda

inst>extdata folder:

  • AJS_AmTiman.xlsx
  • AJS_AmTiman_population.xlsx
  • Blocksshape.xxx
  • Quartiersshape.xxx
  • mortality_survey_data.xlsx
  • mortality_survey_dict.xlsx

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant