View source: R/checkMixtureFile.R
checkMixtureFile | R Documentation |
Given a mixture file name, returns the loaded data frame along with any detected errors or warnings.
checkMixtureFile(filename)
filename |
Path of the mixture file |
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.
A list containing
df
The loaded data frame, NULL if errors are present.
warning
A list of strings describing the errors that ocurred but could be fixed or that do not prevent the execution of the program.
error
A list of strings describing the errors that occurred that made it impossible to return a valid data frame.
If this list is not empty, then the data frame item will be null.
Elias Hernandis
mixfile <- system.file("extdata","mixture.txt",package="relMix")
result <- checkMixtureFile(mixfile);
print(result$df);
print(result$warning);
print(result$error);
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.