emstreeR (version 2.2.0)

data_check: Data checking

Description

Checks the integrity of the inputed data before computing the Euclidian Minimum Spanning Tree (EMST)

Usage

data_check(x)

Arguments

x

a matrix or data.frame.

Value

a matrix containing the cleaned data after running the necessary checks.

Details

data_check is called from inside ComputeMST before the computation begins. First, it evaluates the object format. Afterwards, it checks whether the inputed data has at least two columns and tries to coerce all columns into numeric, beyond removing all rows containing NA's entries.