| expandCategories {dembase} | R Documentation |
Using a ManyToOne concordance, expand the categories
used by one or more dimensions of a demographic array.
expandCategories( object, dimension = NULL, old, new, concordance, weights = NULL, means = FALSE, n = NULL ) ## S4 method for signature 'Counts,ANY,missing,missing,ManyToOne' expandCategories( object, dimension, concordance, weights = NULL, means = FALSE, n = NULL ) ## S4 method for signature 'Values,ANY,ANY,ANY,missing' expandCategories(object, dimension, old, new, weights) ## S4 method for signature 'Values,ANY,missing,missing,ManyToOne' expandCategories(object, dimension, concordance, weights)
object |
Object of class |
dimension |
Character or numeric vector giving the name or index of the dimension where the categories are found - or names or indices if more than one dimension is being changed. |
old |
Character vector of length 1 containing the name of the category to be expanded. |
new |
Character vector giving the names of the new categories. |
concordance |
Object of class |
weights |
Object of class |
means |
If |
n |
Number of iterations to generate. Ignored if |