Learn R Programming

modello (version 0.1.1)

bind.modello_number: Bind

Description

S3 method to bind numbers together along a certain dimension.

Usage

# S3 method for modello_number
bind(..., k)

# S3 method for 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

Examples

Run this code
# NOT RUN {
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()
# }

Run the code above in your browser using DataLab