Get risk factor directory names
get_risk_factor_names.Rd
Retrieves the names or paths of risk factor directories within the project structure.
Examples
root_dir <- system.file("extdata", "example-nl", "Reference_Data", package = "hiaR")
get_risk_factor_names(root_dir)
#> D:/a/_temp/Library/hiaR/extdata/example-nl/Reference_Data/Risk_Factors
#> └── Smoking_cat3
get_risk_factor_names(root_dir, return_paths = TRUE)
#> D:/a/_temp/Library/hiaR/extdata/example-nl/Reference_Data/Risk_Factors
#> └── Smoking_cat3