| Title: | Access Drug Regulatory Data via FDA and Health Canada APIs |
|---|---|
| Description: | Provides functions to access drug regulatory data from public RESTful APIs including the 'FDA Open API' and the 'Health Canada Drug Product Database API', retrieving real-time or historical information on drug approvals, adverse events, recalls, and product details. Additionally, the package includes a curated collection of open datasets focused on drugs, pharmaceuticals, treatments, and clinical studies. These datasets cover diverse topics such as treatment dosages, pharmacological studies, placebo effects, drug reactions, misuses of pain relievers, and vaccine effectiveness. The package supports reproducible research and teaching in pharmacology, medicine, and healthcare by integrating reliable international APIs and structured datasets from public, academic, and government sources. For more information on the APIs, see: 'FDA API' <https://open.fda.gov/apis/> and 'Health Canada API' <https://health-products.canada.ca/api/documentation/dpd-documentation-en.html>. |
| Authors: | Renzo Caceres Rossi [aut, cre] (ORCID: <https://orcid.org/0009-0005-0744-854X>) |
| Maintainer: | Renzo Caceres Rossi <[email protected]> |
| License: | GPL-3 |
| Version: | 0.1.1 |
| Built: | 2026-05-14 08:20:26 UTC |
| Source: | https://github.com/lightbluetitan/medxr |
This dataset, aspirin_infarction_df, is a data frame containing results from a meta-analysis on the use of aspirin to prevent death after myocardial infarction. It includes binary outcome data comparing aspirin and placebo groups.
data(aspirin_infarction_df)data(aspirin_infarction_df)
A data frame with 7 observations and 6 variables:
Character variable identifying each study
Integer variable indicating the publication year
Integer variable for the number of deaths in the aspirin group
Integer variable for the total number of patients in the aspirin group
Integer variable for the number of deaths in the placebo group
Integer variable for the total number of patients in the placebo group
The dataset name has been kept as 'aspirin_infarction_df' to avoid confusion with other datasets in the R ecosystem. This naming convention helps distinguish this dataset as part of the MedxR package and assists users in identifying its specific characteristics. The suffix 'df' indicates that the dataset is a data frame. The original content has not been modified in any way.
Data taken from the package meta version 8.2-1
This dataset, ATC_code_tbl_df, is a tibble containing ATC (Anatomical Therapeutic Chemical) classification codes assigned to drugs by the World Health Organization. The classification system categorizes drugs into different levels of anatomical and chemical structure.
data(ATC_code_tbl_df)data(ATC_code_tbl_df)
A tibble with 50 observations and 10 variables:
Character variable representing the ATC code assigned to the drug
Character variable indicating the anatomical main group
Character variable indicating the code of level 1
Character variable indicating the therapeutic subgroup
Character variable indicating the code of level 2
Character variable indicating the pharmacological subgroup
Character variable indicating the code of level 3
Character variable indicating the chemical subgroup
Character variable indicating the code of level 4
Character variable with the corresponding DrugBank identifier
The dataset name has been kept as 'ATC_code_tbl_df' to avoid confusion with other datasets in the R ecosystem. This naming convention helps distinguish this dataset as part of the MedxR package and assists users in identifying its specific characteristics. The suffix 'tbl_df' indicates that the dataset is a tibble. The original content has not been modified in any way.
Data taken from the package covid19dbcand version 0.1.1
This dataset, BCG_vaccine_df, is a data frame containing results from 13 studies evaluating the effectiveness of the Bacillus Calmette-Guerin (BCG) vaccine against tuberculosis. The dataset includes trial metadata and outcome counts for treatment and control groups.
data(BCG_vaccine_df)data(BCG_vaccine_df)
A data frame with 13 observations and 9 variables:
Integer variable identifying each trial
Character variable with the name of the study author
Integer variable indicating the publication year of the study
Integer variable indicating the number of TB-positive cases in the treatment group
Integer variable indicating the number of TB-negative cases in the treatment group
Integer variable indicating the number of TB-positive cases in the control group
Integer variable indicating the number of TB-negative cases in the control group
Integer variable indicating the absolute latitude of the study location
Character variable indicating the allocation type
The dataset name has been kept as 'BCG_vaccine_df' to avoid confusion with other datasets in the R ecosystem. This naming convention helps distinguish this dataset as part of the MedxR package and assists users in identifying its specific characteristics. The suffix 'df' indicates that the dataset is a data frame. The original content has not been modified in any way.
Data taken from the package metadat version 1.4-0
This dataset, binding_df, is a data frame containing the binding rate of antibiotics to serum protein in cows. The study measured the extent to which antibiotics bind to protein in the bloodstream, which can reduce the medical effectiveness of the drug. Twelve cows were given one of three antibiotics: chloramphenicol, erythromycin, or tetracycline.
data(binding_df)data(binding_df)
A data frame with 12 observations and 2 variables:
Factor variable indicating the type of antibiotic administered
Numeric variable representing the measured binding rate to serum protein
The dataset name has been kept as 'binding_df' to avoid confusion with other datasets in the R ecosystem. This naming convention helps distinguish this dataset as part of the MedxR package and assists users in identifying its specific characteristics. The suffix 'df' indicates that the dataset is a data frame. The original content has not been modified in any way.
Data taken from the isdals package version 3.0.1
This dataset, caffeine_matrix, is a matrix containing data from Henson et al. [1996] investigating caffeine's effect on short-term visual memory. High school students (9 eighth-graders, 10 tenth-graders, 9 twelfth-graders) were tested twice: once after drinking caffeinated Coke and once after decaffeinated Coke. Students had 10 seconds to memorize 20 common objects, then 1 minute to recall them. The study examined whether students remembered more objects with decaffeinated versus caffeinated Coke.
data(caffeine_matrix)data(caffeine_matrix)
A numeric matrix with 28 rows and 3 columns:
Numeric values indicating the grade level of the student (8, 10, or 12)
Number of objects remembered after drinking decaffeinated Coke
Number of objects remembered after drinking caffeinated Coke
The dataset name has been kept as 'caffeine_matrix' to avoid confusion with other datasets in the R ecosystem. This naming convention helps distinguish this dataset as part of the MedxR package and assists users in identifying its specific characteristics. The suffix 'matrix' indicates that the dataset is stored as a matrix object. The original content has not been modified in any way.
Data taken from the msos package version 1.2.0
This dataset, copd_drug_therapy_df, is a data frame containing results from 39 trials examining pharmacologic treatments for chronic obstructive pulmonary disease (COPD). It includes study identifiers, treatment groups, number of exacerbations, and sample sizes.
data(copd_drug_therapy_df)data(copd_drug_therapy_df)
A data frame with 94 observations and 6 variables:
Character variable identifying each study
Integer variable indicating the publication year
Integer variable representing the study ID
Character variable describing the treatment group
Integer variable indicating the number of COPD exacerbations
Integer variable for the total number of patients in the group
The dataset name has been kept as 'copd_drug_therapy_df' to avoid confusion with other datasets in the R ecosystem. This naming convention helps distinguish this dataset as part of the MedxR package and assists users in identifying its specific characteristics. The suffix 'df' indicates that the dataset is a data frame. The original content has not been modified in any way.
Data taken from the package metadat version 1.4-0
This dataset, dosage_tbl_df, is a tibble containing treatment dosage information for antimicrobial agents as defined by EUCAST. The dosages are used to support interpretive breakpoints in antimicrobial susceptibility testing.
data(dosage_tbl_df)data(dosage_tbl_df)
A tibble with 759 observations and 9 variables:
Antimicrobial ID
Name of the antimicrobial agent
Type of dosage scheme
Dose amount
Number of doses per day
Route of administration
Additional clinical notes
Original EUCAST dosage description
EUCAST guideline version number
The dataset name has been kept as 'dosage_tbl_df' to avoid confusion with other datasets in the R ecosystem. This naming convention helps distinguish this dataset as part of the MedxR package and assists users in identifying its specific characteristics. The suffix 'tbl_df' indicates that the dataset is a tibble. The original content has not been modified in any way.
Data taken from the AMR package version 3.0.0
This dataset, drug_prices_tbl_df, is a tibble containing information on unit prices for various pharmaceutical products. Each record includes a description, currency, cost per unit, unit type, and a parent key identifier.
data(drug_prices_tbl_df)data(drug_prices_tbl_df)
A tibble with 208 observations and 5 variables:
Character variable describing the drug or product
Character variable indicating the currency in which the price is expressed
Numeric variable indicating the unit cost of the drug
Character variable representing the measurement unit (e.g., tablet, mL)
Character variable serving as a linking identifier to related records
The dataset name has been kept as 'drug_prices_tbl_df' to avoid confusion with other datasets in the R ecosystem. This naming convention helps distinguish this dataset as part of the MedxR package and assists users in identifying its specific characteristics. The suffix 'tbl_df' indicates that the dataset is a tibble data frame. The original content has not been modified in any way.
Data taken from the covid19dbcand package version 0.1.1
This dataset, drugsmisuse_tbl_df, is a tibble containing information about the use of pain relievers for non-medical purposes in the United States. It includes individual-level data for 100 cases, detailing misuse patterns across various opioid-based medications.
data(drugsmisuse_tbl_df)data(drugsmisuse_tbl_df)
A tibble with 100 observations and 8 variables:
Character variable representing the unique case identifier
Integer variable indicating hydrocodone misuse (1 = Yes, 0 = No)
Integer variable indicating oxycodone misuse (1 = Yes, 0 = No)
Integer variable indicating codeine misuse (1 = Yes, 0 = No)
Integer variable indicating tramadol misuse (1 = Yes, 0 = No)
Integer variable indicating morphine misuse (1 = Yes, 0 = No)
Integer variable indicating methadone misuse (1 = Yes, 0 = No)
Integer variable indicating Vicodin or similar misuse (1 = Yes, 0 = No)
The dataset name has been kept as 'drugsmisuse_tbl_df' to avoid confusion with other datasets in the R ecosystem. This naming convention helps distinguish this dataset as part of the MedxR package and assists users in identifying its specific characteristics. The suffix 'tbl_df' indicates that the dataset is a tibble. The original content has not been modified in any way.
Data taken from the package lay version 0.1.3
Retrieves adverse event reports from the FDA Adverse Event Reporting System (FAERS)
that match a specific drug name using the RESTful API endpoint
/drug/event.json?search=<drug_name>.
This includes details such as the safety report ID, receive date, serious status, patient information, drug details, and adverse reactions for each reported adverse event related to pharmaceutical products.
get_fda_adverse_events(drug_name)get_fda_adverse_events(drug_name)
drug_name |
A character string representing the name of the drug. |
This function sends a GET request to the FDA openFDA API. It supports caching via the memoise package to avoid redundant calls, and respects a rate limit between successive API requests.
If the API request fails, returns no matches, or returns an error status code,
the function returns NULL with an informative message.
A tibble with the following columns:
report_id: Unique identifier for the adverse event report
date_received: Date FDA received the report
country: Country where event occurred
serious: Is it serious? ("Yes", "No", or original API value / NA)
adverse_reactions: List of adverse reactions reported (separated by semicolons) or NA
patient_sex: Patient sex ("Male", "Female", "Unknown", original API value, or NA)
patient_age: Patient age at onset (as returned by API) or NA
Requires an internet connection.
FDA Adverse Event Reporting System (FAERS) via openFDA: https://open.fda.gov/apis/drug/event/
# Esta función requiere conexión a internet y descarga datos de la FDA get_fda_adverse_events("aspirin")# Esta función requiere conexión a internet y descarga datos de la FDA get_fda_adverse_events("aspirin")
Retrieves drug label information from the FDA Drug Labeling Database
that match a specific drug name using the RESTful API endpoint
/drug/label.json?search=<drug_name>.
This includes details such as the product ID, brand name, generic name, indications and usage, dosage and administration, warnings, drug interactions, and other prescribing information from FDA-approved drug labels.
get_fda_drug_labels(drug_name)get_fda_drug_labels(drug_name)
drug_name |
A character string representing the name of the drug. |
This function sends a GET request to the FDA openFDA API. It supports caching via the memoise package to avoid redundant calls, and respects a rate limit between successive API requests.
If the API request fails, returns no matches, or returns an error status code,
the function returns NULL with an informative message.
A tibble with the following columns:
product_id: Unique identifier for the product
brand_name: Brand or trade name of the product
generic_name: Generic name of the active ingredient
manufacturer: Name of the manufacturer
product_type: Type of drug product
route: Route of administration
indications: Approved indications for use
warnings: Important warnings and precautions
Requires an internet connection.
FDA Drug Labeling Database via openFDA: https://open.fda.gov/apis/drug/label/
# This function requires an internet connection and downloads data from FDA get_fda_drug_labels("aspirin")# This function requires an internet connection and downloads data from FDA get_fda_drug_labels("aspirin")
Retrieves information about FDA-approved drug products from the official
Drugs at FDA database that match a specific drug name using the RESTful API
endpoint /drug/drugsfda.json?search=<drug_name>.
This includes details such as the application number, sponsor name, approval dates, product information, application type (NDA, ANDA, BLA), and submission details for brand name drugs, generic drugs, and therapeutic biological products approved by the FDA since 1939.
get_fda_drugs_approved(drug_name)get_fda_drugs_approved(drug_name)
drug_name |
A character string representing the name of the drug (brand name or generic name). |
This function sends a GET request to the FDA openFDA API. It supports caching via the memoise package to avoid redundant calls, and respects a rate limit between successive API requests.
The Drugs at FDA database contains information about drug products approved since 1939. The majority of labels, approval letters, and reviews are available for products approved since 1998. This database includes brand name drugs, generic drugs, and therapeutic biological products.
If the API request fails, returns no matches, or returns an error status code,
the function returns NULL with an informative message.
A tibble with the following columns:
application_number: FDA application number (NDA, ANDA, or BLA)
sponsor: Name of the company that holds the application
brand: Brand or trade name of the approved product
generic: Generic (non-proprietary) name of the active ingredient
type: Application type (NDA, ANDA, BLA)
approval_date: Date the product was approved by FDA
strength: Dosage strength of the product
form: Pharmaceutical dosage form
route: Route of administration
Requires an internet connection.
FDA Drugs at FDA Database via openFDA: https://open.fda.gov/apis/drug/drugsfda/
# This function requires an internet connection and downloads data from FDA get_fda_drugs_approved("aspirin") get_fda_drugs_approved("lipitor")# This function requires an internet connection and downloads data from FDA get_fda_drugs_approved("aspirin") get_fda_drugs_approved("lipitor")
Retrieves National Drug Code (NDC) information from the FDA NDC Directory
that match a specific drug name using the RESTful API endpoint
/drug/ndc.json?search=<drug_name>.
This includes details such as the NDC product code, brand name, generic name, labeler information, product type, dosage form, route of administration, marketing status, and active ingredients for pharmaceutical products marketed in the United States.
get_fda_ndc_directory(drug_name)get_fda_ndc_directory(drug_name)
drug_name |
A character string representing the name of the drug (brand name or generic name). |
This function sends a GET request to the FDA openFDA API. It supports caching via the memoise package to avoid redundant calls, and respects a rate limit between successive API requests.
The NDC Directory contains information on final marketed drugs submitted to FDA in SPL (Structured Product Labeling) electronic listing files. Assignment of an NDC number does not denote FDA approval of the product.
If the API request fails, returns no matches, or returns an error status code,
the function returns NULL with an informative message.
A tibble with the following columns:
ndc: National Drug Code (NDC) product identifier
brand: Brand or proprietary name of the drug product
generic: Generic (non-proprietary) name of the drug
ingredients: List of active ingredients with strengths
form: Pharmaceutical dosage form (e.g., TABLET, CAPSULE)
route: Route of administration (e.g., ORAL, INTRAVENOUS)
labeler: Name of the company that labels/markets the product
type: Type of drug product (e.g., HUMAN PRESCRIPTION DRUG)
status: Current marketing status (e.g., Prescription)
Requires an internet connection. The NDC Directory is updated daily by FDA.
FDA National Drug Code Directory via openFDA: https://open.fda.gov/apis/drug/ndc/
# This function requires an internet connection and downloads data from FDA get_fda_ndc_directory("aspirin") get_fda_ndc_directory("ibuprofen")# This function requires an internet connection and downloads data from FDA get_fda_ndc_directory("aspirin") get_fda_ndc_directory("ibuprofen")
Retrieves detailed information on all active ingredients
listed in the Health Canada Drug Product Database (DPD)
through the RESTful API endpoint /drug/activeingredient.
Each record corresponds to a specific active ingredient within a registered drug product, including concentration, unit, and dosage details (if available).
get_hc_active_ingredients()get_hc_active_ingredients()
The function sends a GET request to the Health Canada DPD API. It uses memoisation via the memoise package to cache results and includes a rate limit delay between API requests.
Missing values are retained as empty strings (""),
preserving the original schema of the API.
A tibble with the following columns:
dosage_unit: Unit of dosage form (e.g., "ML", "
dosage_value: Numeric dosage quantity (e.g., "100")
drug_code: Unique code identifying the drug product
ingredient_name: Name of the active ingredient
strength: Strength or concentration value (e.g., "50", "0.05")
strength_unit: Unit of the strength (e.g., "MG", "G", "
Requires an active internet connection.
Health Canada Drug Product Database (DPD) API: https://health-products.canada.ca/api/documentation/dpd-documentation-en.html
# This function requires an internet connection and downloads data from Health Canada get_hc_active_ingredients()# This function requires an internet connection and downloads data from Health Canada get_hc_active_ingredients()
Retrieves information on all pharmaceutical companies listed in the
Health Canada Drug Product Database (DPD) using the
RESTful API endpoint /drug/company.
This includes details such as the company code, company name, address, city, province, postal code, and country. Each record corresponds to a company associated with one or more approved or discontinued drug products.
get_hc_companies()get_hc_companies()
This function sends a GET request to the Health Canada Drug Product Database API. It supports caching via the memoise package to avoid redundant calls, and includes a small rate limit delay between successive API requests.
The columns post_office_box and suite_number are automatically
removed as they generally contain incomplete or irrelevant information.
If the API request fails or returns an error status code,
the function returns NULL with an informative message.
A tibble with the following columns:
company_code: Unique identifier for the company
company_name: Official registered name of the company
company_type: Type of company (e.g., "DIN OWNER", "Manufacturer")
city_name: City where the company is located
province_name: Province or territory (if applicable)
country_name: Country name
postal_code: Postal code or ZIP code
street_name: Street address
Requires an active internet connection.
Health Canada Drug Product Database (DPD) API: https://health-products.canada.ca/api/documentation/dpd-documentation-en.html
# This function requires an internet connection and downloads data from Health Canada get_hc_companies()# This function requires an internet connection and downloads data from Health Canada get_hc_companies()
Retrieves all Drug Identification Numbers (DINs) from the Health Canada
Drug Product Database (DPD) using the RESTful API endpoint /drug/drugproduct.
Only the DIN column is returned, renamed as din for convenience.
get_hc_din()get_hc_din()
This function sends a GET request to the Health Canada Drug Product Database API. It supports caching via the memoise package to avoid redundant calls, and respects a rate limit between successive API requests.
If the API request fails or returns an error status code,
the function returns NULL with an informative message.
A tibble with a single column:
din: The Drug Identification Number
Requires an internet connection.
Health Canada Drug Product Database (DPD) API: https://health-products.canada.ca/api/documentation/dpd-documentation-en.html
GET,
fromJSON,
as_tibble, rename
# This function requires an internet connection and downloads data from Health Canada get_hc_din()# This function requires an internet connection and downloads data from Health Canada get_hc_din()
Retrieves detailed information for a specific drug product listed in the
Health Canada Drug Product Database (DPD) using the RESTful API endpoint
/drug/drugproduct?din=<DIN>.
This includes details such as the Drug Identification Number (DIN), product name, class, number of active ingredients, company name, and update date.
get_hc_drug_by_din(din)get_hc_drug_by_din(din)
din |
A character or numeric string representing the Drug Identification Number (DIN) of the product to retrieve. |
Sends a GET request to the Health Canada Drug Product Database API. Supports caching via the memoise package and enforces a rate limit between successive API requests.
If the DIN does not exist or the API returns an error, the function
returns NULL with an informative message.
The function fails gracefully when internet resources are unavailable, including SSL certificate errors, network timeouts, or server issues.
A tibble with the following columns:
drug_code: Unique code identifying the drug product
class_name: Class of drug (e.g., Human, Veterinary)
din: DIN assigned by Health Canada
brand_name: Brand or trade name of the product
number_of_ais: Number of active ingredients
ai_group_no: Active ingredient group number
company_name: Manufacturer name
last_update_date: Date of last update in the database
Returns NULL if the resource is unavailable or if an error occurs.
Requires an internet connection.
Health Canada Drug Product Database (DPD) API: https://health-products.canada.ca/api/documentation/dpd-documentation-en.html
# This function requires an internet connection and downloads data from Health Canada result <- get_hc_drug_by_din("02456789") if (!is.null(result)) { print(result) }# This function requires an internet connection and downloads data from Health Canada result <- get_hc_drug_by_din("02456789") if (!is.null(result)) { print(result) }
Retrieves information on all drug products listed in the
Health Canada Drug Product Database (DPD) using the
RESTful API endpoint /drug/drugproduct.
Optionally, a partial product name can be provided to filter the results to products that contain the search term in their brand name.
get_hc_drug_products(name = NULL)get_hc_drug_products(name = NULL)
name |
Optional. A character string representing a partial or complete name of the drug product to filter results. If omitted, returns all available products. |
This function sends a GET request to the Health Canada Drug Product Database API. It supports caching via the memoise package to avoid redundant calls, and respects a rate limit between successive API requests.
If the API request fails, returns no matches, or returns an error status code,
the function returns NULL with an informative message.
A tibble with the following columns:
drug_code: Unique code identifying the drug product
class_name: Class of drug (e.g., Human, Veterinary)
din: Drug Identification Number (DIN)
brand_name: Brand or trade name of the product
number_of_ais: Number of active ingredients
ai_group_no: Active ingredient group number
company_name: Manufacturer name
last_update_date: Date of last update in the database
Requires an internet connection.
Health Canada Drug Product Database (DPD) API: https://health-products.canada.ca/api/documentation/dpd-documentation-en.html
# This function requires an internet connection and downloads data from Health Canada # Retrieve all products get_hc_drug_products() # Retrieve products matching a partial name get_hc_drug_products("acetaminophen")# This function requires an internet connection and downloads data from Health Canada # Retrieve all products get_hc_drug_products() # Retrieve products matching a partial name get_hc_drug_products("acetaminophen")
Retrieves information on all pharmaceutical dosage forms listed in the
Health Canada Drug Product Database (DPD) using the
RESTful API endpoint /drug/form.
This includes details such as the drug code, form code, and the pharmaceutical form name (e.g., tablet, capsule, solution).
get_hc_forms()get_hc_forms()
This function sends a GET request to the Health Canada Drug Product Database API. It supports caching via the memoise package to avoid redundant calls, and respects a rate limit between successive API requests.
If the API request fails or returns an error status code,
the function returns NULL with an informative message.
A tibble with the following columns:
drug_code: Unique code identifying the drug product.
pharm_form_code: Code representing the pharmaceutical form.
pharm_form_desc: Description of the pharmaceutical form (e.g., Tablet, Capsule, Solution).
Requires an internet connection.
Health Canada Drug Product Database (DPD) API: https://health-products.canada.ca/api/documentation/dpd-documentation-en.html
# This function requires an internet connection and downloads data from Health Canada get_hc_forms()# This function requires an internet connection and downloads data from Health Canada get_hc_forms()
Retrieves drug products from the Health Canada Drug Product Database (DPD)
that match a specific brand (commercial) name using the RESTful API endpoint
/drug/drugproduct?search=<brand_name>.
This includes details such as the Drug Identification Number (DIN), product name, class, number of active ingredients, company name, and update date for each approved or discontinued pharmaceutical product.
get_hc_search_drug(brand_name)get_hc_search_drug(brand_name)
brand_name |
A character string representing the commercial name of the drug. |
This function sends a GET request to the Health Canada Drug Product Database API. It supports caching via the memoise package to avoid redundant calls, and respects a rate limit between successive API requests.
If the API request fails, returns no matches, or returns an error status code,
the function returns NULL with an informative message.
A tibble with the following columns:
drug_code: Unique code identifying the drug product
class_name: Class of drug (e.g., Human, Veterinary)
din: Drug Identification Number (DIN)
brand_name: Brand or trade name of the product
number_of_ais: Number of active ingredients
ai_group_no: Active ingredient group number
company_name: Manufacturer name
last_update_date: Date of last update in the database
Requires an internet connection.
Health Canada Drug Product Database (DPD) API: https://health-products.canada.ca/api/documentation/dpd-documentation-en.html
# This function requires an internet connection and downloads data from Health Canada get_hc_search_drug("NEMBUTAL")# This function requires an internet connection and downloads data from Health Canada get_hc_search_drug("NEMBUTAL")
This dataset, histamine_matrix, is a matrix containing data on blood histamine levels in dogs after drug treatment. Sixteen dogs were used to assess morphine and trimethaphan effects on blood histamine concentration. Dogs were divided into four groups: two received morphine, two received trimethaphan (both intravenous). In each drug pair, one group had histamine depleted prior to treatment, the other retained normal levels. Values of "0.10" indicate originally missing data, arbitrarily imputed with that value.
data(histamine_matrix)data(histamine_matrix)
A numeric matrix with 16 rows and 4 columns:
Blood histamine levels measured before drug administration
Histamine levels measured after 1 minute
Histamine levels measured after 3 minutes
Histamine levels measured after 5 minutes
The dataset name has been kept as 'histamine_matrix' to avoid confusion with other datasets in the R ecosystem. This naming convention helps distinguish this dataset as part of the MedxR package and assists users in identifying its specific characteristics. The suffix 'matrix' indicates that the dataset is stored as a matrix object. The original content has not been modified in any way.
Data taken from the msos package version 1.2.0
This dataset, naoh_digest_df, is a data frame containing digestibility coefficients for six horses that were fed straw. Each horse was tested under two conditions: once after being fed ordinary straw and once after being fed straw treated with sodium hydroxide (NaOH).
data(naoh_digest_df)data(naoh_digest_df)
A data frame with 6 observations and 3 variables:
Integer identifier for each horse
Numeric variable representing digestibility after consuming ordinary straw
Numeric variable representing digestibility after consuming NaOH-treated straw
The dataset name has been kept as 'naoh_digest_df' to avoid confusion with other datasets in the R ecosystem. This naming convention helps distinguish this dataset as part of the MedxR package and assists users in identifying its specific characteristics. The suffix 'df' indicates that the dataset is a data frame. The original content has not been modified in any way.
Data taken from the isdals package version 3.0.1
This dataset, oilvitaminA_df, is a data frame containing vitamin A concentrations in the livers of rats after being fed vitamin A dissolved in different types of oil. Twenty rats were divided into two groups: one received vitamin A in corn oil and the other in castor oil (American oil). After three days of feeding, vitamin A concentration in the liver was measured on the fourth day.
data(oilvitaminA_df)data(oilvitaminA_df)
A data frame with 20 observations and 2 variables:
Factor variable indicating the oil type used to deliver vitamin A (corn or castor oil)
Integer variable representing the measured vitamin A concentration in the liver
The dataset name has been kept as 'oilvitaminA_df' to avoid confusion with other datasets in the R ecosystem. This naming convention helps distinguish this dataset as part of the MedxR package and assists users in identifying its specific characteristics. The suffix 'df' indicates that the dataset is a data frame. The original content has not been modified in any way.
Data taken from the isdals package version 3.0.1
This dataset, oral_anticoagulants_df, is a data frame containing results from 34 studies evaluating the effectiveness of oral anticoagulants in patients with coronary artery disease. The dataset includes study metadata and outcome counts for treatment and control groups, as well as intensity classifications.
data(oral_anticoagulants_df)data(oral_anticoagulants_df)
A data frame with 34 observations and 9 variables:
Character variable identifying each study
Integer variable indicating the publication year
Character variable describing treatment intensity
Integer variable indicating the number of aspirin users in the treatment group
Integer variable indicating the number of aspirin users in the control group
Integer variable indicating the number of adverse events in the treatment group
Integer variable for the sample size of the treatment group
Integer variable indicating the number of adverse events in the control group
Integer variable for the sample size of the control group
The dataset name has been kept as 'oral_anticoagulants_df' to avoid confusion with other datasets in the R ecosystem. This naming convention helps distinguish this dataset as part of the MedxR package and assists users in identifying its specific characteristics. The suffix 'df' indicates that the dataset is a data frame. The original content has not been modified in any way.
Data taken from the package metadat version 1.4-0
This dataset, parkinsons_list, is a list containing information from 7 studies investigating the effect of dopamine agonists as adjunct therapy in patients with Parkinson's disease. The dataset includes placebo and four active drugs coded from 2 to 5, measuring outcomes such as lost work-time reduction.
data(parkinsons_list)data(parkinsons_list)
A list with 5 elements:
Numeric vector representing the reduction in lost work-time for each treatment arm
Numeric vector indicating the standard error of each observation
Character vector identifying the treatment type (placebo or drug)
Numeric vector indicating the study each observation belongs to
Character vector listing the treatment names in the order of coding
The dataset name has been kept as 'parkinsons_list' to avoid confusion with other datasets in the R ecosystem. This naming convention helps distinguish this dataset as part of the MedxR package and assists users in identifying its specific characteristics. The suffix 'list' indicates that the dataset is a list. The original content has not been modified in any way.
Data taken from the package bnma version 1.6.1
This dataset, pharmacy_tbl_df, is a tibble containing hourly client attendance data in a pharmacy located in Geneva, Switzerland. The dataset spans two years, recording the number of clients per hour alongside the date and weekday.
data(pharmacy_tbl_df)data(pharmacy_tbl_df)
A tibble with 17,520 observations and 4 variables:
Date variable indicating the calendar date
Character variable representing the hour of observation
Character variable representing the day of the week
Numeric variable indicating the number of clients observed
The dataset name has been kept as 'pharmacy_tbl_df' to avoid confusion with other datasets in the R ecosystem. This naming convention helps distinguish this dataset as part of the MedxR package and assists users in identifying its specific characteristics. The suffix 'tbl_df' indicates that the dataset is a tibble. The original content has not been modified in any way.
Data taken from the package idarps version 0.0.5
This dataset, placebos_df, is a data frame containing pain relief data from both analgesics and placebos. It presents observations over time comparing the effects of different treatments including placebo, aspirin (Asp), and codis (a combination analgesic), along with calculated placebo reduction.
data(placebos_df)data(placebos_df)
A data frame with 7 observations and 6 variables:
Integer variable indicating the time point of observation
Numeric variable indicating the measured effect of the placebo
Numeric variable indicating the measured effect of a distractor treatment
Numeric variable indicating the measured effect of aspirin
Numeric variable indicating the measured effect of codis
Numeric variable indicating the reduction attributed to the placebo
The dataset name has been kept as 'placebos_df' to avoid confusion with other datasets in the R ecosystem. This naming convention helps distinguish this dataset as part of the MedxR package and assists users in identifying its specific characteristics. The suffix 'df' indicates that the dataset is a data frame. The original content has not been modified in any way.
Data taken from the package SRMData version 1.0.2
This dataset, products_drug_tbl_df, is a tibble containing detailed information on 3,764 commercially available pharmaceutical products in Canada and the United States. Each record includes identifiers such as NDC and DPD codes, marketing start and end dates, strength, dosage form, administration route, approval status, and source agency.
data(products_drug_tbl_df)data(products_drug_tbl_df)
A tibble with 3,764 observations and 19 variables:
Character variable with the commercial name of the drug product
Character variable indicating the name of the pharmaceutical company
Character variable with the U.S. National Drug Code (NDC) identifier
Character variable for the product-level NDC code
Character variable for the Canadian Drug Product Database (DPD) ID
Character variable for the European Medicines Agency product code
Character variable with the EMA marketing authorization number
Character variable indicating marketing start date
Character variable indicating marketing end date
Character variable representing the drug's dosage form
Character variable with the dosage strength
Character variable describing the route of administration
Character variable for the FDA application number
Character variable indicating if the product is a generic formulation
Character variable indicating OTC availability
Character variable specifying whether the product is approved
Character variable indicating the country of approval (Canada/US)
Character variable with the originating regulatory body
Character variable linking to related records
The dataset name has been kept as 'products_drug_tbl_df' to avoid confusion with other datasets in the R ecosystem. This naming convention helps distinguish this dataset as part of the MedxR package and assists users in identifying its specific characteristics. The suffix 'tbl_df' indicates that the dataset is a tibble data frame. The original content has not been modified in any way.
Data taken from the covid19dbcand package version 0.1.1
This dataset, ratliver_df, is a data frame containing results from an experiment investigating drug absorption in the livers of rats. Nineteen rats were weighed, given an oral dose of approximately 40 mg of drug per kilogram of body weight, and sacrificed after a fixed period. Liver weight and the percentage of the administered dose found in the liver were recorded.
data(ratliver_df)data(ratliver_df)
A data frame with 19 observations and 4 variables:
Integer variable indicating body weight of the rat (in grams)
Numeric variable representing the weight of the liver (in grams)
Numeric variable representing the total dose administered (in mg)
Numeric variable representing the percentage of the dose found in the liver
The dataset name has been kept as 'ratliver_df' to avoid confusion with other datasets in the R ecosystem. This naming convention helps distinguish this dataset as part of the MedxR package and assists users in identifying its specific characteristics. The suffix 'df' indicates that the dataset is a data frame. The original content has not been modified in any way.
Data taken from the isdals package version 3.0.1
This dataset, reactions_drug_tbl_df, is a tibble containing detailed information on 69 biochemical reactions involving drug molecules. It includes enzyme-mediated transformations, pharmacological activity of drug metabolites, and mappings between substrates and products as described by DrugBank identifiers.
data(reactions_drug_tbl_df)data(reactions_drug_tbl_df)
A tibble with 69 observations and 6 variables:
Numeric variable indicating the order of the metabolic reaction
Character variable with the DrugBank ID of the input compound
Character variable with the name of the input compound
Character variable with the DrugBank ID of the resulting metabolite
Character variable with the name of the resulting metabolite
Character variable for linking to external reference records
The dataset name has been kept as 'reactions_drug_tbl_df' to avoid confusion with other datasets in the R ecosystem. This naming convention helps distinguish this dataset as part of the MedxR package and assists users in identifying its specific characteristics. The suffix 'tbl_df' indicates that the dataset is a tibble data frame. The original content has not been modified in any way.
Data taken from the covid19dbcand package version 0.1.1
This function lists all datasets available in the 'MedxR' package. If the 'MedxR' package is not loaded, it stops and shows an error message. If no datasets are available, it returns a message and an empty vector.
view_datasets_MedxR()view_datasets_MedxR()
A character vector with the names of the available datasets. If no datasets are found, it returns an empty character vector.
if (requireNamespace("MedxR", quietly = TRUE)) { library(MedxR) view_datasets_MedxR() }if (requireNamespace("MedxR", quietly = TRUE)) { library(MedxR) view_datasets_MedxR() }