powered by
Adding in a feedback call sumdiff that finds the difference of a function and then sums this difference. Called by segmentation.
segmentation
sumdiff(x, na.rm = TRUE)
A single value data.
vector of numeric values
single logical should missing values be removed
tmp1 <- c(1,3,2,6,4,5,3,9,10) sumdiff(x = tmp1)
Run the code above in your browser using DataLab