| create_target_config | R Documentation |
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"
)
path |
Optional path to the target data file. |
type |
Optional file type for the target dataset ("har", "sl4", "csv", or "xlsx"). |
header |
Optional header name within the HAR or SL4 file to extract. |
value_col |
Column name containing numeric target values. Default is "Value". |
Supports HAR, SL4, CSV, and XLSX file formats
Can also represent a uniform numeric target value when no file path is provided
Used in combination with create_initial_config for shock computation
A list containing:
path: file path to target data
type: file format (lowercase)
header: header name in HAR/SL4 file
value_col: column name for target values
Pattawee Puangchit
create_initial_config, 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"
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.