Skip to content
Snippets Groups Projects
Commit c5d95175 authored by Svajunas Plunge's avatar Svajunas Plunge
Browse files

small bug in phu

parent 0c103b16
No related branches found
No related tags found
No related merge requests found
......@@ -275,7 +275,7 @@ prepare_phu <- function(mgt_out, years) {
ungroup() %>%
filter(year %in% years)
if(any(phu_tbl$date_diff > 1)) {
if(any(phu_tbl$date_diff > 1, na.rm = TRUE)) {
crop_diff <- phu_tbl %>%
filter(operation == 'KILL') %>%
filter(date_diff > 1) %>%
......
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