Description Usage Arguments Details Value Examples
getIDQual
returns a character vector with all unit qualifier names (IDQual)
contained in the input object.
1 2 3 4 5 6 7 8 9 10 11 12 13 | getIDQual(object, CompNames = names(object))
## S4 method for signature 'VNC'
getIDQual(object, CompNames = names(object))
## S4 method for signature 'DD'
getIDQual(object, CompNames = setdiff(names(object), "VNC"))
## S4 method for signature 'StQ'
getIDQual(object, CompNames = setdiff(names(getDD(object)), "VNC"))
## S4 method for signature 'StQList'
getIDQual(object, CompNames = names(object))
|
object |
Object with the unit qualifiers (IDQual) to be queried. |
CompNames |
Character vector with the components or slots from which IDQuals are queried. |
Unit qualifiers are those qualifiers identifying statistical units.
Character vector with all the unit qualifier names.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 | # An example:
library(data.table)
### We build the VNC object
VarList <- list(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', 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)),
AggWeights = data.table(IDQual = c('CCAA', 'NACE09', ''),
NonIDQual = rep('', 3),
IDDD = c('', '', 'Ponderacion'),
CCAA = c('', '', '.'),
NACE09 = c('', '', '.'),
UnitName = c('Provincia', '', ''),
InFiles = rep('FF', 3)))
VNC <- BuildVNC(VarList)
getIDQual(VNC)
getIDQual(VNC, 'MicroData')
getIDQual(VNC, 'ParaData')
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.