GetM1: Get reduced matrix (M1) function

Description Usage Arguments Value Examples

View source: R/GetM1.R

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

1
2
3
4
GetM1(datatable)

## S3 method for class '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

1
GetM1(matrix(c(1,2,0,3,4,0,0,0,0),3,3))

toni-1991/Delta documentation built on Dec. 9, 2019, 8:54 a.m.