A package for doing checks on the Tree Swallow databases. Will print a list with the results (problematic lines) of the different checks executed.
To install, do:
# install and load devtools to be able to install packages from GitHub with install_github
install.packages("devtools")
library(devtools)
# install package
install_github("frousseu/BDTREScheck")
library(BDTREScheck)
?checkBD
adults: ferme, nichoir, id, annee, nnich, idcouvee, heure, jjulien, prefixe, suffixe, idadult, condition, sexe_morpho, age_morpho, sexe_gen, locus_sexe_gen, couleur, age_exact, laile1, laile2, masse, tarse1, tarse2, trougauche, troudroite, pararectrice, plaqueincu, Cause_recapt, commentaire, observateur
chicks: ferme, nichoir, id, annee, nnich, idcouvee, heure, jjulien, prefixe, suffixe, idois, sexe_gen, locus_sexe_gen, condition, numero_oisillon, jour_suivi, envol, masse, 9primaires1, 9primaires2, tarse1, tarse2, commentaires, manipulateur
broods: idcouvee, id, ferme, nichoir, annee, codesp, nnich, noeufs, noisnes, noisenvol, noismort, dispa_ois, dispa_oeufs, abandon, pred_pot, dponte, dincub, declomin, declomax, denvomin, denvomax, dabanmin, dabanmax, idF1, idM1, idF2, idF3, idM2, idM3, Commentaires
Run checks:
library(BDTREScheck)
x<-checkBD(
dsn="//argus.dinf.fsci.usherbrooke.ca/DBio_Rech_Data/Projet_Hirondelle/1_Donnees/11_Principales",
year=2015,
adultsNew=NULL,
broodsNew=NULL,
chicksNew=NULL,
adultsOld="Adultes_2004-2015.xlsx",
broodsOld="Couvee_2004-2015.xlsx",
chicksOld="Oisillons_2004-2015.xlsx",
sheet=1
)
Display results:
x
x[4]
Show the list of checks:
checkShow(html=FALSE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.