powered by
Defines the configuration for loading the target dataset, which represents post-adjustment or comparative rate values. Supports multiple file formats.
create_target_config( path = NULL, type = NULL, header = NULL, value_col = "Value" )
A list containing:
path: file path to target data
path
type: file format (lowercase)
type
header: header name in HAR/SL4 file
header
value_col: column name for target values
value_col
Optional path to the target data file.
Optional file type for the target dataset ("har", "sl4", "csv", or "xlsx").
Optional header name within the HAR or SL4 file to extract.
Column name containing numeric target values. Default is "Value".
Pattawee Puangchit
Supports HAR, SL4, CSV, and XLSX file formats
HAR
SL4
CSV
XLSX
Can also represent a uniform numeric target value when no file path is provided
Used in combination with create_initial_config for shock computation
create_initial_config
create_initial_config, create_calc_config, shock_calculate, shock_calculate_uniform
create_calc_config
shock_calculate
shock_calculate_uniform
# Example: Define Target Configuration target <- create_target_config( path = "D:/Data/taxrates_2019.har", type = "har", header = "rTMS" )
Run the code above in your browser using DataLab