Skip to contents

Retrieves all filenames associated with a specific risk factor.

Usage

get_risk_factor_filenames(root_dir, risk_factor_name)

Arguments

root_dir

A character string which specifies the root directory of the project.

risk_factor_name

A character string which specifies the name of the risk factor directory.

Value

A character vector of filenames associated with the specified risk factor.

Examples

root_dir <- system.file("extdata", "example-nl", "Reference_Data", package = "hiaR")
get_risk_factor_filenames(root_dir, "Smoking_cat3")
#> D:/a/_temp/Library/hiaR/extdata/example-nl/Reference_Data/Risk_Factors/Smoking_cat3
#> ├── configuration.xml
#> ├── Prevalences
#> │   ├── NL_RF_smoking_cat3_Prev_V1.xml
#> │   └── RF_smoking_cat_All_Never_Smokers_Prev.xml
#> ├── Relative_Risks_For_Death
#> │   └── RR_smoking_cat3_to_TotalMort.xml
#> └── Transitions
#>     ├── NL_RF_smoking_Transitions_Netto.xml
#>     └── NL_RF_smoking_Transitions_Zero.xml