Update summaries in R using the raw data in Climsoft and the definitions file in the buckets #135
lilyclements
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Here is some R code/script on how to "update" your summaries in R using the raw data in Climsoft and the definitions file in the buckets. For this, you need to have:
Step Zero: Update the R Packages
Step One: Link the Station_ID for the data in Climsoft to an existing Definitions ID:
You can link a data frame from Climsoft to an existing Definitions ID by running:
Here:
station_id
: A character string representing the station ID of the data given in Climsoftdefinition_id
: A character string representing the new definition ID to be added.add_climsoft
A logical value indicating whether to add in climsoft details. This will add in the values fromelementfiltercolumn
andelements
.elementfiltercolumn
Name of the column to filter by elements, default is 'elementName'.elements
Vector of element IDs to filter the data. Default is elements = c("Temp Daily Max", "Temp Daily Min", "Precip Daily")Step Two: Set up the credentials for Climsoft
Step Three: Set up and run for our different functions*
Beta Was this translation helpful? Give feedback.
All reactions