Skip to content
Snippets Groups Projects
Commit da563e25 authored by Christoph Schürz's avatar Christoph Schürz
Browse files

Minor fix in filter_hru_at_harvkill()

parent 9a5af57f
No related branches found
No related tags found
No related merge requests found
...@@ -181,9 +181,10 @@ filter_hru_at_harvkill <- function(sim_verify, ...) { ...@@ -181,9 +181,10 @@ filter_hru_at_harvkill <- function(sim_verify, ...) {
sim_verify$mgt_out %>% sim_verify$mgt_out %>%
mutate(date = ymd(paste(year, mon, day, sep = '-'))) %>% mutate(date = ymd(paste(year, mon, day, sep = '-'))) %>%
filter(operation == 'HARVEST') %>% filter(operation == 'HARVEST') %>%
select(hru, date, op_typ, phuplant, plant_bioms, op_var, var4, var5, var3, var1, var2) %>% select(hru, year, date, op_typ, phuplant, plant_bioms, op_var, var4, var5, var3, var1, var2) %>%
set_names(c('hru', 'date', 'crop', 'phu', 'plant_bioms', 'yield', 'water_stress', 'aero_stress', set_names(c('hru','year' , 'date', 'crop', 'phu', 'plant_bioms', 'yield', 'water_stress', 'aero_stress',
'temp_stress', 'n_stress', 'p_stress')) %>% 'temp_stress', 'n_stress', 'p_stress')) %>%
filter(., ...) filter(., ...) %>%
select(-year)
} }
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment