Skip to content

Commit

Permalink
need to add end_event_series to defoliate_trees function. And news, o…
Browse files Browse the repository at this point in the history
…f course news. #2
  • Loading branch information
chguiterman committed Dec 21, 2018
1 parent a908ed6 commit 8b38ab1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# dfoliatR v0.0.3
* Changed package name
* Add parameter to allow for events that are ongoing at the time of sampling, called end-series events.

# bugr v0.0.2
* This version in response to validation trials with real data
Expand Down
3 changes: 2 additions & 1 deletion R/main.R
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,8 @@ defoliate_trees <- function(host_tree, nonhost_chron, duration_years = 8,
tree_list <- lapply(seq_len(nseries), function(i){
input_series <- stats::na.omit(dplR::combine.rwl(host_tree[, i, drop=FALSE], nonhost_chron))
corrected_series <- correct_host_series(input_series)
defoliated_series <- id_defoliation(corrected_series, duration_years = duration_years, max_reduction = max_reduction)
defoliated_series <- id_defoliation(corrected_series, duration_years = duration_years,
max_reduction = max_reduction, end_series_event = end_series_event)
return(defoliated_series)
}
)
Expand Down

0 comments on commit 8b38ab1

Please sign in to comment.