checkMixtureFile {relMix}R Documentation

Load and check a mixture file

Description

Given a mixture file name, returns the loaded data frame along with any detected errors or warnings.

Usage

checkMixtureFile(filename)

Arguments

filename

Path of the mixture file

Details

If warnings are found, the function attempts to fix them and explains what it has done in the warning messages. If an error is found, checking stops and a NULL data frame is returned. The error is described in the error messages.

Value

A list containing

Author(s)

Elias Hernandis

Examples

mixfile <- system.file("extdata","mixture.txt",package="relMix")
result <- checkMixtureFile(mixfile);
print(result$df);
print(result$warning);
print(result$error);

[Package relMix version 1.4 Index]