Definition of an S3 class named VarNameCorresp with the correspondence between variable names used by the different production unit for a given statistical variable and variable names according to the key-value pair data model with qualifiers given by statistical metadata.
The class VarNameCorresp comprises a list whose components are data.tables with a row per each variable and the following columns:
IDQual
: Names of unit qualifiers.
NonIDQual
: Names of variable names qualifiers.
IDDD
: Names of the variables.
One column per each name of the IDQual
qualifiers:
Values of the corresponding IDQual
Qualifier for each variable (row).
One column per each name of the NonIDQual
qualifiers:
Values of the corresponding NonIDQual
Qualifier for each variable
(row).
UnitName
: Variable name used in production.
InFiles
: code of the files where each variable is included.
1 2 3 4 5 6 7 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 | library(data.table)
VNC <- VNC(ID = data.table(IDQual = c('NumIdEst', rep('', 4)),
NonIDQual = c('','','','',''),
IDDD = c('', 'Name', 'Surname', 'PostalAddr', 'PhoneNo'),
NumIdEst = c('', rep('.', 4)),
UnitName = c('numidest', 'nombre', 'apellidos', 'direccion', 'telefono'),
InFiles = rep('FI', 5)),
MicroData = data.table(IDQual = c('NumIdEst', rep('', 2)),
NonIDQual = c('', 'Market', ''),
IDDD = c(rep('', 2), 'NewOrders'),
NumIdEst = c(rep('', 2), '.'),
Market = c(rep('', 2), '1'),
UnitName = c('numidest', '', 'cp09'),
InFiles = rep('FF, FD, FG', 3)),
ParaData = data.table(IDQual = c('NumIdEst', rep('', 2)),
NonIDQual = c('', 'Action', ''),
IDDD = c(rep('', 2), 'Date'),
NumIdEst = c(rep('', 2), '.'),
Action = c(rep('', 2), 'Imputation'),
UnitName = c('numidest', '', 'FechaImput'),
InFiles = rep('FP', 3)))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.