matrix_length: Checks the length of a matrix

Description Usage Arguments Examples

View source: R/modeller.R

Description

This function checks if less than 25 percent of the entries of a matrix is zero or not. It returns FALSE only if less than 25 percent of matrix entries is non-zero.

Usage

1
matrix_length(xsplit)

Arguments

xsplit

A column matrix (manipulated by splitter function based on change-point(s) and model).

Examples

1
2
3
x = matrix(c(1,2.3,2.78, 3.4,5.5, 6.1, 7 ,8.4, 9,10))
x_split = splitter('4P', x, 3)
matrix_length(x_split)

tinnaing347/bRema documentation built on Aug. 23, 2019, 9:15 p.m.