fvector: Create a variable-index vector or matrix

Description Usage Arguments Value Author(s) Examples

View source: R/fvector.R

Description

Create a variable-index vector or matrix

Usage

1
2
3
fvector(indices)

fmatrix(irows, icols)

Arguments

indices

Vector indices

irows, icols

Indices of rows or columns

Value

Numeric vector with "custom" indices

Author(s)

Alexey Shiklomanov

Examples

1
2
3
4
5
6
x <- fvector(0:2)
x[] <- c(5, 7, 9)
x
x[0]
# This matrix is square
y <- fmatrix(0:5, 1:6)

ashiklom/fortebaseline documentation built on May 9, 2020, 1:56 a.m.