Check the length of an input value

checkIt(x, lng, type = "numeric", fixit = TRUE)

Arguments

x

a numeric object

lng

a numeric object

type

a character string specifying required typeof

fixit

a logical value, if TRUE force length to lng

Value

a numeric object