normTable {arealDB} | R Documentation |
Normalise data tables
Description
Harmonise and integrate data tables into standardised format
Usage
normTable(
input = NULL,
pattern = NULL,
ontoMatch = NULL,
outType = "rds",
beep = NULL,
update = FALSE,
verbose = FALSE
)
Arguments
input |
[ |
pattern |
[ |
ontoMatch |
[ |
outType |
[ |
beep |
[ |
update |
[ |
verbose |
[ |
Details
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 reshapeinput
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.
If
update = TRUE
, store the processed data table at stage three.
Value
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.
See Also
Other normalise functions:
normGeometry()
Examples
if(dev.interactive()){
# build the example database
makeExampleDB(until = "normGeometry", path = tempdir())
# normalise all available data tables ...
normTable(update = TRUE)
# ... and check the result
output <- readRDS(paste0(tempdir(), "/adb_tables/stage3/Estonia.rds"))
}