Learn R Programming

SLGI (version 1.32.0)

createSquareMatrix: Create a square matrix

Description

Create a square matrix based on row and column names. The new matrix is created so that the row and column names are a perfect match and the added values are zero.

In the case of genetic interactions, for example it could be useful that the matrix of all the interactions tested and not tested.

Usage

createSquareMatrix(data)

Arguments

data
Matrix

Value

matrix.

Examples

Run this code
  data(Atong)
  dim(Atong)

  Tong<- createSquareMatrix(Atong)
  dim(Tong)
 

Run the code above in your browser using DataLab