dfalster/baad

No definition for columns `speciesMatched` & `studyName`

Closed this issue · 0 comments

baad has two species columns: species and speciesMatched, however there is only a definition for species

e.g.

> subset(dat$dictionary, variable =='species')
  variable units   group      type has_methods essential   label minValue maxValue allowableValues                           description
9  species  <NA> species character       FALSE      TRUE species       NA       NA            <NA> latin name of species (genus species)


> subset(dat$dictionary, variable =='speciesMatched')
 [1] variable        units           group           type            has_methods     essential       label           minValue        maxValue        allowableValues description    
<0 rows> (or 0-length row.names)

I'm guessing speciesMatched is the a column that has been checked against some species name database?

Also although self explanatory there is no dictionary definition for studyName either.
For consistency I think the dictionary should match the structure of the data.
This can happen by adding definitions for the two variables I mention above.

# of columns
> length(names(baad$data))
[1] 62
# of column definitions
> length(baad$dictionary$variable)
[1] 60