#' assigns segments based on max factor score
#' @param myfacscores factor scores
#' @export
max_score <- function(myfacscores){
set.seed(123456)
assigned_segment <- max.col(myfacscores)
return(assigned_segment)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.