# Fetch data for a single NCT ID
trial_data <- ctg_get_nct("NCT04000165")
trial_data
# Fetch data for multiple NCT IDs
multiple_trials <- ctg_get_nct(c("NCT04000165", "NCT04002440"))
multiple_trials
# Fetch data for multiple NCT IDs with specific fields
specific_fields <- ctg_get_nct(
c("NCT04000165", "NCT04002440"),
fields = c("NCT Number", "Study Title", "Study Status")
)
specific_fields
Run the code above in your browser using DataLab