checkMixtureFile: Load and check a mixture file

Description Usage Arguments Details Value Author(s) Examples

View source: R/checkMixtureFile.R

Description

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

Usage

1
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 dataframe is returned. The error is described in the error messages.

Value

A list containing

Author(s)

Elias Hernandis

Examples

1
2
3
4
5
6
7
8
## Not run: 
mixfile <- system.file("extdata","mixture.txt",package="relMix")
result <- checkMixtureFile(mixfile);
print(result$df);
print(result$warning);
print(result$error);

## End(Not run)

relMix documentation built on Dec. 15, 2020, 5:11 p.m.