Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

alpha_label

Numerics ids to alphabetical ids


Description

Function to transform a list of numeric ids to alphabetic ids

Usage

alpha_label(x)

Arguments

x

A vector of numeric ids

Details

Given a vector of numeric cluster ids, 'alpha_label' converts each id to its corresponding alphabets. It combines alphabets for ids greater than 26.

Value

A vector of alphabetical ids.

Examples

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)

akmedoids

Anchored Kmedoids for Longitudinal Data Clustering

v1.3.0
GPL-3
Authors
Monsuru Adepeju [cre, aut], Samuel Langton [aut], Jon Bannister [aut]
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.