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

makeVec

makeVec for checking or creating vectors


Description

This is a convenience for handling function arguments. If x is a single value, it makes a vector of length d in which all values are equal to x. If x is a vector, check that its length is d.

Usage

makeVec(x = NULL, d = NULL)

Arguments

x

A single value or a vector

d

An integer, the desired size of the vector

Value

A vector of length d

Author(s)

Paul E. Johnson <pauljohn@ku.edu>


rockchalk

Regression Estimation and Presentation

v1.8.144
GPL (>= 3.0)
Authors
Paul E. Johnson [aut, cre], Gabor Grothendieck [ctb]
Initial release
2019-03-07

We don't support your browser anymore

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