Description Usage Arguments Details Value Author(s) See Also Examples
View source: R/500.SummaryMeasuresCategoricalData20170518.R
Calculates the count of rows and columns that contain all zeros, in a given matrix
1 | SumZeroData(inpmat, start.col = NULL, end.col = NULL)
|
inpmat |
- The input matrix |
start.col |
- The minimum of the range of interest. Starting column number |
end.col |
- The minimum of the range of interest. Ending column number |
The function calculates the number of rows and columns which are all zeros, in the given range
A dataframe that provides a count of rows and columns that contain all zeros, in a given matrix
Feature |
Feature description - '# of all-zero rows' showing the count of rows with all zeros '# of all-zero columns' showing the count of columns with all zeros |
Value |
Calculated value of counts |
Subbiah and Balakrishna S Kesavan
Other The summary of measures for categorical data: SumCount
,
SumMedianSD
, SumMinMaxRange
,
SummaryData
1 2 3 4 5 6 | x=c(7,61,55,129,489,570,475,431,293,154,38,12)
inpmat = cbind(x[1:4],x[5:8],x[9:12])
SumZeroData(inpmat)
###Example with some zeros
inpmat = matrix(c(0, 0, 0, 1, 0, 7), nrow=3, ncol=2)
SumZeroData(inpmat)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.