GHRtools
  • data4health
    • Overview
    • Reference
    • Changelog

    • Vignettes
    • Getting started
    • Access health data
  • clim4health
    • Overview
    • Reference
    • Changelog

    • Vignettes
    • Getting started
    • Glossary
    • s2dv_cube objects
    • Get function
    • Downscaling function
    • Verification function
  • GHRexplore
    • Overview
    • Reference
    • Changelog

    • Vignettes
    • Getting started
  • GHRmodel
    • Overview
    • Reference
    • Changelog

    • Vignettes
    • Getting started
    • Covariate structures
    • DLNMs in GHRmodel
  • GHRpredict
    • Overview
  • About GHR

On this page

  • Get path to data4health example datasets
    • Description
    • Arguments
    • Returns
    • Examples

Get path to data4health example datasets

Description

The ‘data4health’ package includes some example files in its inst/extdata directory. This function to access them. Use it without parameter to retrieve a list of all examples files, and then again to retrieve the path to your specific file.

d4h_example(path = NULL)

Arguments

  • path: Name of file. If NULL, the example files will be listed.

Returns

If path is NULL, a character vector of available example file names. If path is provided, the full file path to that example file.

Examples

d4h_example()
d4h_example("example_dataset.xlsx")

Copyright 2026, GHR

 

BSC IDExtremes HARMONIZE Wellcome