![](../logo.png)
Add Trak Absolute Values and Clean Data
Source:R/emii_add_trak_absolute.R
emii_add_trak_absolute.Rd
This function calculates the absolute contributions for `tandem_applicator`, `vaginal_applicator`, `needles`, and `trak` totals across multiple fractions
Value
The dataframe with the new absolute values for each trak component, cleaned based on the given rules.
Details
The function works in three main steps: 1. **trak_calculate_all_fractions()**: Calculates absolute contributions for all components (tandem, vaginal, needles) for each fraction. 2. **trak_calculate_totals()**: Calculates total sums for all fractions. 3. **trak_clean_data()**: Cleans the data, setting the sum columns to `NA` if volume is greater than 150 or any trak component is zero.