normTable | R Documentation |
Harmonise and integrate data tables into standardised format
normTable(
input = NULL,
pattern = NULL,
query = NULL,
ontoMatch = NULL,
beep = NULL,
verbose = FALSE
)
input |
|
pattern |
|
query |
|
ontoMatch |
|
beep |
|
verbose |
|
To normalise data tables, this function proceeds as follows:
Read in input
and extract initial metadata from
the file name.
Employ the function
tabshiftr::reorganise()
to reshape input
according to
the respective schema description.
The territorial names are matched with the gazetteer to harmonise new territorial names (at this step, the function might ask the user to edit the file 'matching.csv' to align new names with already harmonised names).
Harmonise territorial unit names.
store the processed data table at stage three.
This function harmonises and integrates so far unprocessed data tables at stage two into stage three of the areal database. It produces for each main polygon (e.g. nation) in the registered data tables a file that includes all thematic areal data.
Other normalise functions:
normGeometry()
if(dev.interactive()){
# build the example database
adb_example(until = "normGeometry", path = tempdir())
# normalise all available data tables ...
normTable()
# ... and check the result
output <- readRDS(paste0(tempdir(), "/tables/stage3/Estonia.rds"))
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.