Get single data frame
get_ev_data.Rd
Returns a selected data frame from an ev_data
container.
Details
The data frame can be selected by index (1, 2, 3 etc.) or by name (project.table
). The names of data frames within an ev_data
container can be queried using get_ev_data_names
.
An ev_data
container can be created using fetch_ev_data
.
See also
fetch_ev_data
to create an ev_data
container.
Other getters:
get_ev_data_names()
,
get_ev_metadata()
,
get_ev_projects()
,
get_ev_request()
,
get_ev_tables()
,
get_ev_variables()
,
get_ev_vars_df()
Examples
if (FALSE) { # \dontrun{
con <- ev_connect()
# read a variable data request file
vars <- read_ev_variables("path/to/variables/file")
# fetch the data from EpiVault
dat <- fetch_ev_data(con, vars)
# get a data frame by name
get_ev_data(dat, df_name = "proj1.tab1")
# get a data frame by index
get_ev_data(dat, df_index = 1)
} # }