abasile1-tech / CodeClanData

Data repo for the data course

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Adding Data to the Data Package

  1. Get the 'CodeClanData' repo from CodeClan's GitHub.

  2. Go to the file data-raw/prep_data.R.

  3. Define your dataset in this file. This can be as simple as reading a CSV file (put raw files in data-raw/data), or you might want to do a lot of cleaning or API calls. You can see some examples in this folder.

Note: we can't use files greater than 100MB on GitHub Note: try to put the code in the correct place alphabetically so it's easy to find later.

  1. Once you've created your dataset, add a use_data function for your chosen data (see examples at the end of prep_data.R).

  2. Source the whole of prep_data.R.

  3. Now go to R/documentation.R. Here you write a short description of your dataset, which will be shown in the documentation. See examples from the other datasets. Again, put this in the correct place alphabetically.

  4. Use devtools::document() in the console.

  5. Push changes to GitHub.

  6. Reinstall the package on your machine using devtools::install_github('codeclan/CodeClanData')

About

Data repo for the data course


Languages

Language:R 100.0%