fes_get_data | R Documentation |
fes_get_data
is a wrapper for the $get_data
method
of lfcFES
objects. See also fes
.
fes_get_data(object, table_name, spatial = FALSE)
object |
|
table_name |
character vector of lenght 1 indicating the requested table name |
spatial |
logical indicating if the data must be converted to an spatial object |
Connection to database can be slow. Tables retrieved from the db are
stored in a temporary cache inside the lfcFES object created by
fes
, making subsequent calls to the same table are faster.
A tbl object: tbl_df if spatial is FALSE
, sf if spatial is
TRUE
Other FES functions:
fes_avail_tables()
,
fes_describe_var()
,
fes()
if (interactive()) {
fesdb <- fes()
# tibble
fes_get_data(fesdb, 'static')
# sf tibble
fes_get_data(fesdb, 'static', TRUE)
# we can use pipes
fesdb |>
fes_get_data('static', TRUE)
# fesdb is an R6 object, so the previous examples are the same as:
fesdb$get_data('static')
fesdb$get_data('static', TRUE)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.