Install the latest stable version of cropgrowdays via CRAN with:
install.packages("cropgrowdays")
You can install the development version of cropgrowdays from GitLab
with:
## if you don't have 'remotes' installed, automatically install it if (!require("remotes")) { install.packages("remotes", repos = "http://cran.rstudio.com/") library("remotes") } install_gitlab("petebaker/cropgrowdays", build_vignettes = TRUE)
The cropgrowdays package provides functions to calculate agrometeorological quantities of interest for modelling crop data. Currently, functions are provided for calculating growing degree days, stress days, cumulative and daily means of weather data. Australian meteorological data can be obtained from Queensland Government's Department of Environment and Science (DES) website. In addition, functions are provided to convert days of the year to dates, and vice-versa.
We recommend using the cropgrowdays package in conjunction with the tidyverse and lubridate packages. Additionally, we also recommend using the furrr package to speed up adding agrometeorological variables to large data frames. For this document, we only use the lubridate package as follows.
suppressMessages(library(lubridate)) library(cropgrowdays)
Note that if you are not familiar with the lubridate
package, then in order
to see which functions are provided and which functions conflict with
other packages, initially it may best not to suppress messages using
suppressMessages
.
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.