Learn R Programming

Delta (version 0.2.0.3)

CheckInputData: Check Input Matrix function

Description

This function checks that matrix introduced is as expected. Should be a matrix, squared, with a dimension greater or equal to two, without negative entries and at least an entry different of 0.

Usage

CheckInputData(datatable)

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.

Examples

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

Run the code above in your browser using DataLab