Add a new processing_step
new_step(...) # S3 method for processing_template new_step(x, fun, arglist, name = "none", id = NULL, ...)
| ... | further arguments passed to or from other methods(not currenctly used).  | 
    
|---|---|
| x | A   | 
    
| fun | either a function or a non-empty character string naming the function to be called.  | 
    
| arglist | a list of arguments to the function call. The names attribute of args gives the argument names.  | 
    
| name | A string description of the step  | 
    
| id | An id associated with the step. Will be converted to a unique id.  | 
    
A list-like object storing processing steps.
library(tidySpectR) template <- processing_template() %>% new_step(mask, list(from = 5, to = Inf), name = "mask") %>% new_step(bucket_uniform, list(N = 10), name = "bucket") template#> Step 1 / 2 : mask #> Step 2 / 2 : bucket