% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/create_radar.R
\name{create_radar_calc}
\alias{create_radar_calc}
\title{Radar Chart (Calculation)}
\usage{
create_radar_calc(
  data,
  metrics,
  hrvar,
  id_col = "PersonId",
  mingroup = 5,
  agg = "mean",
  index_mode = "total",
  index_ref_group = NULL,
  na.rm = FALSE
)
}
\arguments{
\item{data}{data.frame.}

\item{metrics}{character vector of metric column names.}

\item{hrvar}{character string specifying grouping column.}

\item{id_col}{character string specifying person id column.}

\item{mingroup}{numeric minimum unique people per group.}

\item{agg}{"mean" or "median".}

\item{index_mode}{"total","none","ref_group","minmax".}

\item{index_ref_group}{reference group name when index_mode="ref_group".}

\item{na.rm}{logical.}
}
\value{
list(table=group_level_table, ref=reference_used)
}
\description{
Computes group-level metric values and applies optional indexing.
}
