Learn R Programming

HS (version 1.1)

cda: Cummulative difference approach (CDA) for homogeneous segmentation of spatial lines data.

Description

Function for homogeneous segmentation of spatial lines data using a cummulative difference approach (CDA).

Usage

cda(var = "deflection", length = "length", data, range = NULL)

Arguments

var

A character or a character vector of variable names, such as a road pavement performance indicator.

length

A character of road length name in data.

data

A data frame of a dataset.

range

A vector of length threshold.

Examples

Run this code
# NOT RUN {
testdata <- tsdwa[1:100,]
testdata$Length <- testdata$SLK.end - testdata$SLK.start
testdata <- cda(var = "Deflection", length = "Length", testdata)

# }

Run the code above in your browser using DataLab