calculate_quantilethresperc: Calculate Quantile Threshold Percentages And Counts

View source: R/calculate_quantilethresperc.R

calculate_quantilethrespercR Documentation

Calculate Quantile Threshold Percentages And Counts

Description

This function calculates the quantile threshold percentages based on the input data. Warning: roxygen documentation generated by chatgpt

Usage

calculate_quantilethresperc(
  data,
  group_var,
  thres_var = "Spacer",
  thresname_var = "NT-3",
  value_var,
  quantilethres_var = "0.05",
  round_var = 1
)

Arguments

data

A data frame containing the input data.

group_var

A character vector specifying the grouping variable(s).

thres_var

A character vector specifying the threshold variable (default is 'Spacer').

thresname_var

A character vector specifying the threshold name variable (default is 'NT-3').

value_var

A character vector specifying the value variable.

quantilethres_var

A character vector specifying the quantile threshold variable (default is '0.05').

round_var

An integer specifying the number of decimal places to round the percentages (default is 1).


chris-hsiung/bears01 documentation built on April 9, 2024, 2:01 a.m.