Extract an axis-resolving query's result as a data.frame.
Source: R/dataframes.R
get_dataframe_query.RdThe query-string counterpart of get_dataframe(). The query must
resolve to an axis (possibly mask-filtered).
Arguments
- daf
A DafReader.
- query
A query string resolving to an axis.
- columns
Optional character vector of column names to include in the result. Defaults to all vectors on the resolved axis.
- cache
Logical; if
TRUE(default), serve from the query cache.
Examples
d <- memory_daf()
add_axis(d, "donor", c("d1", "d2"))
set_vector(d, "donor", "age", c(20L, 30L))
get_dataframe_query(d, "@ donor")
#> age
#> d1 20
#> d2 30