Description Usage Arguments Value Author(s) Examples
S3 method to bind numbers
together
along a certain dimension.
1 2 3 4 5 6 7 |
... |
|
k |
dimesion along to perform the bind |
x |
list of |
Returns a number
Filippo Monari
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()
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.