-
Notifications
You must be signed in to change notification settings - Fork 0
Validation Function
- Format Conventions
- Introduction
- Structural / Formal validity
- Metadata Consistency within and between worksheets
- Other Validity Checks
- Validation result levels
-
name
a column in a worksheet with the namename
-
Sheet$column
the sheet is named 'sheet' - "a certain value"
-
name()
a function in R - : This still needs to be done
- : Implemented in validate()
The validation report should report on the following aspects of the conformity of the metadata and it's consistency with the data files.
- Format correct
- Names correct
- All Sheets present
-
type
: conversion fromcharacter
to specified type possible* 0: everything OK * 3: otherwise
-
suggestedValues
check if values are insuggestedValues
* 0: all, in suggested values * 2: not in suggested values
-
???
-
type
: conversion fromcharacter
to specified type possible* 0: everything OK * 3: otherwise
-
suggestedValues
check if values are insuggestedValues
* 0: all, in suggested values * 2: not in suggested values
-
name
in species database and report score (usingtaxize::gnr_resolve()
)* 0: species names are equal to the matched names * 2: one or more have a score of less than -.7 - likely typo * 2: one or more is not found
-
type
: conversion fromcharacter
to specified type possible* 0: everything OK * 3: otherwise
-
suggestedValues
check if values are insuggestedValues
* 0: all, in suggested values * 2: not in suggested values
-
???
-
Treatment$parameter
is inDataFileMetaData$mappingColumn
* 0: everything OK * 2: otherwise
-
type
: conversion fromcharacter
to specified type possible* 0: everything OK * 3: otherwise
-
suggestedValues
check if values are insuggestedValues
* 0: all, in suggested values * 2: not in suggested values
-
name
is unique* 0: all unique * 3: not unique
-
measuredFrom
is "raw", "NA" or inname
* 0: is in set * 3: is not in set
-
Measurement$variable
is inDataFileMetaData$mappingColumn
* 0: everything OK * 2: otherwise
-
dataExtractionName
is "none", "NA", or inDataExtraction$name
-
type
: conversion fromcharacter
to specified type possible* 0: everything OK * 3: otherwise
-
suggestedValues
check if values are insuggestedValues
* 0: all, in suggested values * 2: not in suggested values
-
name
is unique
-
name
is inMeasurement$dataExtractionName
-
type
: conversion fromcharacter
to specified type possible* 0: everything OK * 3: otherwise
-
allowedValues
check if values are in allowedValues* 0: all, in suggested values * 3: not in allowed values
-
dataFileName
exists -
if
type
== "datetime",description
has contain format information. The validity will be tested together with the data* 0: all specified * 3: at least one not given
- if
columnData
== "Measurement",mappingColumn
has to be inMeasurement$name
& ifcolumnData
== "Treatment",mappingColumn
has to be inTreatment$name
-
columnName
has to be in the data filedataFileName
- the date, time and date time can be converted using the format specifications in
description
- ranges of numeric columns
- values of text columns
- ???
- column names of
DataFileMetaData$dataFileName
have to be inDataFileMetaData$columnName
with correctDataFileMetaData$dataFileName
- the values in the column describing the treatment (i.e. treatment levels) have to be in the column
Treatment$treatmentLevel
of the correspondingTreatment$parameter
- type checks of
columnName
compared totype
- Check each dataset for duplicated rows, alert to their presence.
- Check each dataset for duplicated variable names, alert to their presence.
- error this is an error based on structure, content, or consistency between metadata and / or data file(s) which will result in incorrect metadata. Examples will be missing metadata of treatment levels in the. These need to be fixed before export!
- warning a warning that inconsistencies were detected, but the metadata can be correct. These should be checked before export!
- note an information of an issue which can (or can not be) an error. This is a softer form of a warning but should also be looked at.