Learn R Programming

modello (version 0.1.1)

dim.modello_number: Get Number Shape

Description

S3 method to get the shape of a number

Usage

# S3 method for modello_number
dim(x)

Arguments

x

a reference object of class 'number'

Value

Returns the shape vector of the number

Examples

Run this code
# NOT RUN {
modello.init(10, 10, 10, 10)
x = number(matrix(rnorm(9), 3, 3))
dim(x) # c(3, 3)
modello.close()
# }

Run the code above in your browser using DataLab