CombineCollinearRowsCols: Removes rows and columns of zeros and optionnally, row or...

Description Usage Arguments Details Value Examples

View source: R/CombineCollinearRowsCols.R

Description

Removes rows and columns of zeros and optionnally, row or column duplicates

Usage

1
CombineCollinearRowsCols(Y, rows = F, cols = F)

Arguments

Y

A matrix or an object that can be coerced to a matrix

rows

Logical: Will duplicate rows be removed?

cols

Logical: Will duplicate columns be removed?

Details

Rows and columns of zeros will be removed.

A matrix of zeros will be returned as matrix with 0 row and 0 column.

If rows 1,2,3 are combined, the name of row 1 is kept. Similarly for columns.

Value

A matrix with rows and columns removed as requested

Examples

1
2
3
4
5
6
7
8
9

TaxicabCA documentation built on Dec. 11, 2019, 5:07 p.m.