sub-.modello_number: Silce Numbers

Description Usage Arguments Value Author(s) Examples

Description

Slices numbers

Usage

1
2
## S3 method for class 'modello_number'
x[..., contiguous = TRUE]

Arguments

x

reference object of class 'number'

...

additional parametrers to pass to the slice methods

contiguous

if TRUE it tryes to create a contiguous slice

Value

Returns a reference object of class 'number'

Author(s)

Filippo Monari

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
modello.init(10, 10, 10, 10)
x = number(matrix(rnorm(9), 3, 3))
print(x$v)
s1 = x[1, 2]
print(s1)
print(s1$v)
s2 = x[1,2, contiguous=FALSE]
print(s2)
print(s2$v)
modello.close()

modello documentation built on Feb. 2, 2021, 9:06 a.m.