ones: Ones Vector

Description Usage Arguments Value Examples

View source: R/helpers.r

Description

Make a column vector of ones.

Usage

1
ones(n)

Arguments

n

how many ones

Value

a column vector of ones as an integer matrix

Examples

1
2
ones(5)
str(ones(5))

algstat documentation built on May 19, 2017, 9:06 p.m.

Search within the algstat package
Search all R packages, documentation and source code

Questions? Problems? Suggestions? Tweet to @rdrrHQ or email at ian@mutexlabs.com.

Please suggest features or report bugs in the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.