- dataframe
defines the name of the XRF data to reduce, usually a itraxR::itrax_import like tibble
- names
optional, a vector of the same length as `breaks`
- breaks_lower
a vector of the lower limit of each chunk
- breaks_upper
a vector of the upper limit of each chunk
- fun
the function to apply in order to reduce the data. Default is mean(), but sd() is also common
- edges
a vector of length 2 with the upper and lower bound behaviour; can be any of `<`, `<=`, `>`, `>=`
- by
if contiguous samples of even sizes are required, `by` defines the chunk size and will automatically generate `breaks`