wtcheck: Check a vector of weights

Description Usage Arguments Value Examples

View source: R/wtcheck.R

Description

Throws an error if wtvec is not n positive numbers, and return wtvec (stripped of any dim atrribute)

Usage

1
wtcheck(n, wtvec)

Arguments

n

the required length of wtvec

wtvec

an object to be checked

Value

a vector of n positive numbers

Examples

1
2
3
wtcheck(3, 1:3)

wtcheck(2, matrix(1:2, 2))

fda documentation built on May 2, 2019, 5:12 p.m.