Description Usage Arguments Details Value Examples
[
extracts parts of an object of class StQT.
1 2 |
x |
object of class StQT from which to extract element(s). |
i |
indices specifying elements to extract. |
drop |
Included by coherence. |
It is indeed the method [
for the class StQT. This method
returns an object of class StQT whose rules are the specified subset
of the original rules.
Object of class StQT, with the subset of rules.
1 2 3 4 5 6 7 8 9 10 11 | rules <- data.frame(domain = c('!is.na(Variable)','is.na(Variable)',''),
output = c('MediaVariable','Variable','MediaVariable'),
fun = c('mean','identity','FunDelVar'),
input = c('Variable','MediaVariable',''),
by = c('Estrato','',''),
key = c('Estrato','',''),
stringsAsFactors = FALSE)
imputa_media <- NewStQT(rules)
imputa_media
imputa_media[1:2]
imputa_media[3:1]
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.