load_HealthCanada_Opioid_Table | R Documentation |
load_HealthCanada_Opioid_Table
compares the date of the local HealthCanada_Opioid_Table and compares
it with the latest date of data provided Health Canada. In case the local file is outdated,
an updated file will be generated.
load_HealthCanada_Opioid_Table(
filelocation = "",
no_download = FALSE,
verbose = TRUE
)
filelocation |
String. The directory on your system where you want the dataset to be downloaded. If "", filelocation will be set to the download path within the OralOpioids package installation directory. |
no_download |
Logical. If set to TRUE, no downloads will be executed and no user input is required. Default: |
verbose |
Logical. Indicates whether messages will be printed in the console. Default: |
The function returns the HealthCanada_Opioid_Table as a data.frame. Comments on the data.frame include a status message (msg), the HealthCanada_Opioid_Table save path (path), a disclaimer, and the source for the retrieved data (source_url_data and source_url_dosing).
HealthCanada_Opioid_Table <- load_HealthCanada_Opioid_Table(no_download = TRUE)
head(HealthCanada_Opioid_Table)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.