Skip to content

codeclan/CodeClanData

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

63 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages