Learn R Programming

Delta (version 0.2.0.3)

GetM1: Get reduced matrix (M1) function

Description

This function reduce matrix provided by the user deleting missing categories, those j where sum(datatable[j,]) = sum(datatable[,j]) = 0. Also provide a list of the categories deleted and provides the new size of the problem

Usage

GetM1(datatable)

# S3 method for GetM1 print(x, ...)

Arguments

datatable

Matrix. Expected to be square matrix with at least 2 rows (columns), non negative values and at least an element different of zero.

x

List produced by GetM1

...

Other print options

Value

NULL

Examples

Run this code
# NOT RUN {
GetM1(matrix(c(1,2,0,3,4,0,0,0,0),3,3))
# }

Run the code above in your browser using DataLab