R/get_cluster_sizes.R

Defines functions get_cluster_sizes

get_cluster_sizes <- function(cluster_df){

  #' get the number observations in each cluster
  #'
  #' @param cluster_df A data.frame with the cluster vector
  #' @noRd
  #'
  #' @return A table() with the Number per cluster


  N_G <- table(cluster_df)

  N_G

}

Try the summclust package in your browser

Any scripts or data that you put into this service are public.

summclust documentation built on Aug. 10, 2023, 9:07 a.m.