aim-rsf / browseMetadata

An R package to help a researcher browse metadata for health datasets and categorise variables based on research domains
https://aim-rsf.github.io/browseMetadata/
GNU General Public License v3.0
3 stars 1 forks source link

Header of domain file getting added as a domain #98

Closed DDelbarre closed 1 month ago

DDelbarre commented 1 month ago

I was testing domain_mapping with a random JSON file from MetadataCatalogue, and decided to re-use the demo domain file (data-raw/domain_list_demo.csv). When domain_mapping loaded in the domain file it added the header row Domain_Name as one of the domains and was assigned code 5 (see screenshot below).

Screenshot 2024-06-27 at 17 02 19

I think that either the template needs to be changed to remove the header row, or the code will need to be modified to exclude the header when it loads in a domain file.