Learn R Programming

FinNet (version 0.1.2)

FF-nrow-ncol: Number of rows/columns in a financial_matrix object

Description

Unlike most other methods (i.e., duplicated, isSymmetric, summary, rownames, and colnames), these methods act on both the matrix-like and the other components of a financial_matrix object.

Usage

# S4 method for financial_matrix
ncol(x)

# S4 method for financial_matrix nrow(x)

Value

A single numeric, the number of rows (columns) in the matrix. It also prints a message to the console if any of the object's other attributes (e.g., capitalisation) is not conformed to the matrix's dimensions

Arguments

x

The financial_matrix object to operate on

Author

Telarico, Fabio Ashtar

Details

Checks if the length of the names matches that of the other attributes that are not NA or structurally of unitary length (i.e., the slots M and relation).