The hardware and bandwidth for this mirror is donated by METANET, the Webhosting and Full Service-Cloud Provider.
If you wish to report a bug, or if you are interested in having us mirror your free-software or open-source project, please feel free to contact us at mirror[@]metanet.ch.
This package is a compilation of functions for the assessment of climate adaptation and the identification of potential risks for grapevines and fruit trees. Procedures in the package allow to:
You can install the released version of fruclimadapt from CRAN with:
install.packages("fruclimadapt")
And the development version from GitHub with:
install.packages("devtools")
library(devtools)
::install_github("Carm1r/fruclimadapt") devtools
install.packages("data.table")
install.packages("lubridate")
install.packages("tidyverse")
install.packages("zoo")
library(fruclimadapt)
library(data.table)
library(tidyverse)
library(zoo)
This example shows how to use the functions hourly_temps, chill_portions, GDH_linear and phenology_sequential to estimate the date of occurrence of the phenological stages for a nectarine cultivar, using daily weather data.
library(fruclimadapt)
# Generate a dataset with hourly temperatures from the dataset with daily values (Tudela_DW, included in the package)
data(Tudela_DW)
<- hourly_temps(Tudela_DW,42.13132)
Tudela_HT # Use the hourly dataset to calculate chill as chill portions and growing degree hours
# Calculate chill as chill portions, starting on DOY 305
<- chill_portions(Tudela_HT,305)
Chill # Calculate forcing heat as growing degree hours (GDH) with the linear model using base temperature 4.7 C and no upper thresholds
<- GDH_linear(Tudela_HT,4.7,999,999)
GDH # Combine the datasets Chill and GDH in a dataframe with a format compatible with the function phenology_sequential
<- merge(Chill,GDH) %>%
Tudela_CH select(Date, Year, Month, Day, DOY, Chill,GDH) %>%
arrange(Date) %>%
rename(GD=GDH)
# Obtain the predicted dates for the cultivar "Big Top" using the requirement dataset included in the package (Bigtop_reqs)
data(Bigtop_reqs)
<- phenology_sequential(Tudela_CH, Bigtop_reqs, 305) Phenology_BT
This example shows how to use the function spring_frost to estimate the number and accumulated damage caused by spring frosts from budbreaking for the same nectarine cultivar used to estimate the phenology in the previous example.
library(fruclimadapt)
# Use the dataframe with the phenological dates obtained with phenology_sequential to generate a new one with the format required by the function spring_frost
<- Phenology_BT %>%
Phenology_frost select(Freq_Year,Freq_DOY) %>%
rename(Year=Freq_Year,Pheno_date=Freq_DOY)
# Extract a dataframe with daily minimum temperatures from the daily climate example dataset with the format required by spring_frost
<- Tudela_DW %>%
Tmin_Tudela mutate(Date=make_date(Year,Month,Day), DOY=yday(Date)) %>%
select(Year, DOY, Tmin)
# Predict the number and accumulated damage of the spring frosts using the critical values contained in the example dataset Tcrits_peach and extract the dataframe with the total results for each year
data(Tcrits_peach)
<- spring_frost(Tmin_Tudela, Phenology_frost, Tcrits_peach, 181)
Frost_BT <- as.data.frame(Frost_BT[['Damage_frosts']]) Frost_results
The R/fruclimadapt package as a whole is distributed under GPL-3 (GNU General Public License version 3).
These binaries (installable software) and packages are in development.
They may not be fully stable and should be used with caution. We make no claims about them.