| create_initial_config | R Documentation |
Defines the configuration for loading the initial dataset, including path, format,
variable header, and value column name. Used as input for shock_calculate
and shock_calculate_uniform.
create_initial_config(path, format, header, value_col = "Value")
path |
Path to the initial data file. |
format |
File format of the initial dataset. Must be "har" or "sl4". |
header |
Header name within the HAR or SL4 file to extract. |
value_col |
Name of the column containing numeric values. Default is "Value". |
Supports HAR and SL4 file formats
Specifies the header name to extract from the dataset
Allows custom naming for the value column (Value by default)
A list containing:
path: input file path
format: file format ("har" or "sl4")
header: target header name
value_col: column name for numeric values
Pattawee Puangchit
create_target_config, create_calc_config,
shock_calculate, shock_calculate_uniform
# Example: Define Initial Configuration
initial <- create_initial_config(
path = "D:/Data/taxrates_2017.har",
format = "har",
header = "rTMS"
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.