sumdiff: Finding the sum of the differences

View source: R/statistics.R

sumdiffR Documentation

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)

Arguments

x

vector of numeric values

na.rm

single logical should missing values be removed

Value

A single value data.

Examples

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

GENEAclassify documentation built on March 31, 2023, 9:01 p.m.