dot-sits_apply_ts: Apply a function over a set of time series.

Description Usage Arguments Value Author(s)


Apply a 1D generic function to a time series and specific methods for common tasks such as missing values removal and smoothing. 'sits_apply_ts' returns a time series tibble with the same samples points and new bands computed by 'fun', 'fun_index' functions. These functions must be defined inline and are called by 'sits_apply' for each band, whose vector values is passed as the function argument. The 'fun' function may either return a vector or a list of vectors. In the first case, the vector will be the new values of the corresponding band. In the second case, the returned list must have names, and each element vector will generate a new band which name composed by concatenating original band name and the corresponding list element name.

If a suffix is provided in 'bands_suffix', all resulting bands names will end with provided suffix separated by a ".".


.sits_apply_ts(ts.tb, fun, fun_index = function(index) {    
  return(index) }, bands_suffix = "")



Tibble with a time series (one or more bands).


Function with one parameter as input and a vector or list of vectors as output.


Function with one parameter as input and a Date vector as output.


String informing the resulting bands name's suffix.


A sits tibble with same samples and the new bands.


Rolf Simoes, [email protected]

e-sensing/sits documentation built on Aug. 16, 2019, 6:50 p.m.