Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

wtcheck

Check a vector of weights


Description

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

Usage

wtcheck(n, wtvec)

Arguments

n

the required length of wtvec

wtvec

an object to be checked

Value

a vector of n positive numbers

Examples

wtcheck(3, 1:3)

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

fda

Functional Data Analysis

v5.1.9
GPL (>= 2)
Authors
J. O. Ramsay <ramsay@psych.mcgill.ca> [aut,cre], Spencer Graves <spencer.graves@effectivedefense.org> [ctb], Giles Hooker <gjh27@cornell.edu> [ctb]
Initial release
2020-12-16

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.