View source: R/runVocabChecks.R
runVocabChecks | R Documentation |
Check vocabularies in a data set against the ICES DATSU data submission utility, the user must supply a dataset version and record type.
runVocabChecks(filename, datasetverID, recordType)
filename |
the filename of the file to check |
datasetverID |
the dataset ID |
recordType |
string name of the record type |
The list of vocabulary errors. Every line that failed is reported for each field.
## Not run:
filename <- system.file("test_files/vms_test.csv", package = "icesDatsuQC")
vc <- runVocabChecks(filename, 145, "VE")
if (length(vc) > 0) {
library(icesDatsu)
data <-
read.csv(
filename,
header = FALSE,
col.names = getDataFieldsDescription(145, "VE")$fieldcode
)
# some invalid entries
data[vc[[1]], names(vc)[1]]
}
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.