fetch_events | R Documentation |
Fetch event data from the Generable API for a specific project.
fetch_events(project = NULL, project_version_id = NULL, event_type = NULL, ...)
project |
Project name. If NULL, defaults to value of environment variable GECO_API_PROJECT |
project_version_id |
Project version. If NULL, defaults to the most recent version of the project if provided, or the value of environment variable GECO_API_PROJECT_VERSION |
event_type |
Limits the event_types to the names provided. Example: "overall_survival". NULL is unfiltered. Default is NULL. |
... |
Optional filters applied to events data, provided as name-value pairs to limit returned values. Example: trial_id = unique(subjects$trial_id) |
This function retrieves event data from the Generable API.
It requires authentication (see login
) prior to use
and this pulls data from the Generable API.
data.frame with one record per subject and event type
A project can be specified by using the project name or a specific project version.
If a project is specified using the name, data is fetched for the latest version of the project.
If a project is specified using the project version, the project name is not required.
If neither a project nor a project version is provided, the default project or project version is used. These are set by the environment variables GECO_API_PROJECT and GECO_API_PROJECT_VERSION
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.