wip
This commit is contained in:
parent
2988516db2
commit
0b1826dccb
|
|
@ -94,6 +94,11 @@ if(project_dir == "chemba"){
|
||||||
harvesting_data <- read_excel(here(data_dir, "harvest.xlsx"),
|
harvesting_data <- read_excel(here(data_dir, "harvest.xlsx"),
|
||||||
col_types = c("numeric", "numeric", "numeric",
|
col_types = c("numeric", "numeric", "numeric",
|
||||||
"date", "date", "numeric", "text",
|
"date", "date", "numeric", "text",
|
||||||
"numeric", "numeric"))
|
"numeric", "numeric")) %>%
|
||||||
|
mutate(season_end = case_when(
|
||||||
|
season_end > Sys.Date() ~ Sys.Date(),
|
||||||
|
TRUE ~ season_end),
|
||||||
|
age = round(as.numeric(season_end - season_start)/7),1)
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue