ijunk | R Documentation |
This function launches a shiny app to define interactively the junk categories before a specific MCA.
ijunk(data, init_junk = NULL)
data |
data frame of categorical variables to be used as active in a specific MCA |
init_junk |
optional vector of junk categories. Can be a numeric vector indicating the indexes of the junk categories or a character vector of junk categories, specified in the form "namevariable.namecategory" (for instance "gender.male"). Default is NULL. |
Once the selection of junk categories is interactively done, the function provides the code to use in a script. It also offer the opportunity to select a set of junk categories at once by writing the common suffix of these categories.
A character vector of junk categories
Nicolas Robette
speMCA
, csMCA
, getindexcat
## Not run:
data(Music)
ijunk(Music[,1:5])
# or
junk <- ijunk(Music[,1:5])
# To update an existing vector of junk categories
junk <- ijunk(Music[,1:5], init_junk = c("Rock.NA", "Rap.NA"))
# and then
mca <- speMCA(Music[,1:5], excl = junk)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.