Skip to content

Commit

Permalink
Added data update instructions.
Browse files Browse the repository at this point in the history
  • Loading branch information
woodwards-dnz committed Jan 27, 2020
1 parent 2c3b1d8 commit b062f31
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 2 deletions.
15 changes: 15 additions & 0 deletions How to update the data.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
Pasture Potential Tool
Simon Woodward, Mark Neal, DairyNZ Ltd, 2018-2020

HOW TO UPDATE THE DAIRYBASE DATA:
1. open the update_data R project, which is in an adjacent directory to the pasture_potential R project
2. save your new DairyBase data file as dairybasesomething.csv in the update_data directory (remove empty rows and columns)
3. in the script read_dairybase.r add the new data file to the code (non trivial)
4. source read_dairybase.r to create the dairybase.rds file
5. save a copy of read_dairybase.r as read_dairybase_YYYYMMDD.r using today's date
6. source join_databases.r to create the joined.rds and joined_small.rds files (this takes a long time)
7. there is a report in join_databases_report.txt
8. copy the joined_small.rds file to Dropbox (currently C:\Users\WoodwardS\Dropbox\pasture_potential_data_files)



Binary file added joined_small_old.rds
Binary file not shown.
7 changes: 5 additions & 2 deletions pasture_embed27.r
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
# pasture_embed##.r
# Simon Woodward, DairyNZ Ltd, 2018-2019
# pasture_embed.r
# Simon Woodward, Mark Neal, DairyNZ Ltd, 2018-2020
#
# See <How to update the data.txt> for instructions on how to update the data!
#
# uses leaflet, plotly, rdrop2
# for embedding in DairyNZ website page
# requires:
Expand Down

0 comments on commit b062f31

Please sign in to comment.