Learn R Programming

gIPFrm (version 3.1)

single.cells: Single Cells under a Relational Model

Description

The function finds all single cells under a relational model. Such cells appear as the only positive entries in their row and column in the model matrix.

Usage

single.cells(ModelMatrix)

Arguments

ModelMatrix

a model matrix of a relational model.

Value

the row and column indices of the single cells.

Examples

Run this code
# NOT RUN {
G = matrix(c( 2,0,0,0,0,
              0,1,1,0,0,
              0,0,1,1,1), byrow=TRUE, nrow=3) ## a given matrix

single.cells(G)  

# }

Run the code above in your browser using DataLab