R/bdc_basisOfRecords_notStandard.Rbdc_basisOfRecords_notStandard.RdThis function flags records with an informed basis of records (i.e., therecords type, for example, a specimen, a human observation, or a fossilspecimen) not interpretable, which does not comply with Darwin Corevocabulary, or unreliable or unsuitable for specific analyses.
bdc_basisOfRecords_notStandard(data, basisOfRecord="basisOfRecord", names_to_keep="all")data.frame. Containing information about the basis of records.
character string. The column name with information aboutbasis of records. Default = "basisOfRecord".
character string. Elements of the column BasisOfRecordsto keep. Default is "all", which considers a selected list of recommendedstandard Darwin Core classes (and their spelling variations, see details).By default, records missing (i.e., NA) or with "unknown" information aboutbasis of records are kept.
A data.frame containing the column ".basisOfRecords_notStandard".Compliant (TRUE) if 'basisOfRecord' is standard; otherwise "FALSE".
Users are encourage to select the set of basis of records classesto keep. Default = c("Event","HUMAN_OBSERVATION", "HumanObservation","LIVING_SPECIMEN", "LivingSpecimen", "MACHINE_OBSERVATION","MachineObservation", "MATERIAL_SAMPLE", "O", "Occurrence","MaterialSample", "OBSERVATION", "Preserved Specimen","PRESERVED_SPECIMEN", "preservedspecimen Specimen", "Preservedspecimen","PreservedSpecimen", "preservedspecimen", "S", "Specimen", "Taxon","UNKNOWN", "", NA)
x<-data.frame(basisOfRecord=c("FOSSIL_SPECIMEN","UNKNOWN","RON",NA,"Specimen","PRESERVED_SPECIMEN"))bdc_basisOfRecords_notStandard( data=x, basisOfRecord="basisOfRecord", names_to_keep="all")#>#> bdc_basisOfRecords_notStandard:#> Flagged 2 of the following specific nature:#> c("FOSSIL_SPECIMEN", "RON")#> One column was added to the database.#> basisOfRecord .basisOfRecords_notStandard#> 1 FOSSIL_SPECIMEN FALSE#> 2 UNKNOWN TRUE#> 3 RON FALSE#> 4 <NA> TRUE#> 5 Specimen TRUE#> 6 PRESERVED_SPECIMEN TRUE