bind: Bind

Description Usage Arguments Value Author(s) Examples

Description

S3 method to bind numbers together along a certain dimension.

Usage

1
2
3
4
5
6
7
## S3 method for class 'modello_number'
bind(..., k)

## S3 method for class 'list'
bind(x, k, ...)

bind(x, ...)

Arguments

...

numbers to bind together

k

dimesion along to perform the bind

x

list of numbers to bind together

Value

Returns a number

Author(s)

Filippo Monari

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
modello.init(10, 10, 10, 10)
x1 = number(c(1, 2, 3))
y1 = bind(x1, x1, k=1)
print(y1)
print(y1$v)
x2 = number(matrix(c(1, 2, 3), 3, 1))
y2 = bind(x2, x2, k=2)
print(y2)
print(y2$v)
modello.close()
modello.init(10, 10, 10, 10)
x1 = number(c(1, 2, 3))
y1 = bind(list(x1, x1), k=1)
print(y1)
print(y1$v)
x2 = number(matrix(c(1, 2, 3), 3, 1))
y2 = bind(list(x2, x2), k=2)
print(y2)
print(y2$v)
modello.close()

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

Related to bind in modello...