Description Usage Arguments Details Value Examples
This function manipulates the data frame produced by bfastSpatial
to
provide summary statistics for a specified field.
1 | summary_stat(bfast_in, stat, fun1, fun2, st_date = -Inf, ed_date = Inf)
|
bfast_in |
A data frame generated by |
stat |
A character containing the name of a field in |
fun1 |
A function that returns a single value and accepts an
|
fun2 |
A function that returns a single value and accepts an
|
st_date |
A Date indicating the earliest timing of observations to include in the summary. |
ed_date |
A Date indicating the latest timing of observations to inclide in the summary. |
This function may be used for zonal statistics if combined with
subset_bfast()
.
A number that summarizes bfast_in
with fun1
and
fun2
.
1 2 3 4 | ## Not run:
summary_stat(bf_df, "brk", sum, mean)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.