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))

Example output

Loading required package: mpoly
Set Macaulay2 path with setM2Path().
Set Bertini path with setBertiniPath().
Set LattE-integrale path with setLattePath().
Set 4ti2 path with setMarkovPath().
     [,1]
[1,]    1
[2,]    1
[3,]    1
[4,]    1
[5,]    1
 int [1:5, 1] 1 1 1 1 1

algstat documentation built on May 29, 2017, 10:34 p.m.

Related to ones in algstat...