NCC-CNC / wtw-data-prep

Scripts to prepare data for Where To Work tool
0 stars 0 forks source link

Function to initialize a new metadata table #5

Closed edwardsmarc closed 1 year ago

edwardsmarc commented 1 year ago

This would replace the following code in populate_metadata.R:

df <- data.frame(Type = character(),
                 Theme = character(),
                 File = character(),
                 Name = character(),
                 Legend = character(),
                 Values = character(),
                 Color = character(),
                 Labels = character(),
                 Unit = character(),
                 Provenance = character(),
                 Order = character(),
                 Visible = character(),
                 Hidden = character(),
                 Goal = character())

Reasoning is so we can call this code in multiple scripts. e.g. initializing a metadata table from a list of file names in #2