Learn R Programming

GENEAclassify (version 1.5.3)

sumdiff: Finding the sum of the differences

Description

Adding in a feedback call sumdiff that finds the difference of a function and then sums this difference. Called by segmentation.

Usage

sumdiff(x, na.rm = TRUE)

Value

A single value data.

Arguments

x

vector of numeric values

na.rm

single logical should missing values be removed

Examples

Run this code
   tmp1 <- c(1,3,2,6,4,5,3,9,10)
   sumdiff(x = tmp1)
   

Run the code above in your browser using DataLab