Description Usage Arguments Details Value Examples
Function to transform a list of numeric ids to alphabetic ids
1 | alpha_label(x)
|
x |
A vector of numeric ids |
Given a vector of numeric cluster ids, 'alpha_label' converts each id to its corresponding alphabets. It combines alphabets for ids greater than 26.
A vector of alphabetical ids.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | data(TO1Risk)
set.seed(1000)
#pick 4 random clusters
center <- TO1Risk[runif(4,1,nrow(TO1Risk)), ]
#Assigning each individual to nearest centre
numeric_Labels <- kml::affectIndivC(TO1Risk, center)
mode(numeric_Labels)
#transform numeric cluster labels to alphabets
alphab_Labels <- alpha_label(numeric_Labels)
mode(alphab_Labels)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.