Learn R Programming

segclust2d (version 0.3.3)

argcheck_Kmax: Check for argument 'Kmax'

Description

Check whether argument 'Kmax' was provided and is adequate before subsampling. Propose adequate value if Kmax is not provided.

Usage

argcheck_Kmax(Kmax, lmin, datalength)

Value

an integer

Arguments

Kmax

maximum number of segments.

lmin

minimum length of segments.

datalength

length of data provided