Learn R Programming

xnet (version 0.1.11)

dim,tskrr-method: Get the dimensions of a tskrr object

Description

These functions allow you to extract the dimensions of a tskrr object. These dimensions are essentially the dimensions of the label matrix y.

Usage

# S4 method for tskrr
dim(x)

Arguments

x

a tskrr object.

Value

a vector with two values indicating the number of rows and the number of columns.

Examples

Run this code
# NOT RUN {
data(drugtarget)
mod <- tskrr(drugTargetInteraction, targetSim, drugSim)
dim(mod)
nrow(mod)
ncol(mod)

# }

Run the code above in your browser using DataLab