Skip to contents

Transform community count data into proportions or percentages.

Usage

transform_into_proportions(
  data_source_trans,
  sel_method = c("proportions", "percentages"),
  verbose = FALSE,
  silent = FALSE
)

Arguments

data_source_trans

data.frame with label, res_age, and community count columns.

sel_method

character. Scale of the output:

  • "proportions" - values sum to 1 per sample.

  • "percentages" - values sum to 100 per sample.

verbose

logical. If TRUE, print progress messages.

Value

The input data.frame with community columns replaced by the transformed values.