checkReferenceFile: Check a reference profiles file

Description Usage Arguments Details Value Author(s) See Also Examples

View source: R/checkReferenceFile.R

Description

Given a reference profile file name the function attempts to load it and compare it to the mixture file to detect possible errors.

Usage

1
checkReferenceFile(filename, mix)

Arguments

filename

Path of the reference profiles file

mix

Data frame with mixture data

Details

See the relMix vignette for a description of the format of the reference file. The data frame with mixture data is used to compare 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

See Also

checkMixtureFile for information on how to load a mixture file.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
## Not run: 
#Load a mixture file
mixfile <- system.file("extdata","mixture.txt",package="relMix")
mix <- checkMixtureFile(mixfile);
#Note: the mixture dataframe is passed as an argument. If the previous check failed,
#the program should not continue with the reference file check
reffile <- system.file("extdata","references.txt",package="relMix")
checkReferenceFile(reffile, mix$df);

## End(Not run)

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