View source: R/lfc_SiteDrought.R
siteDrought_get_data | R Documentation |
siteDrought_get_data
is a wrapper for the $get_data
method
of lfcsiteDrought
objects. See also siteDrought
.
siteDrought_get_data (object, table_name)
object |
|
table_name |
character vector of lenght 1 indicating the requested table name |
Connection to database can be slow. Tables retrieved from the db are stored in a temporary cache inside
the lfcsiteDrought object created by siteDrought
A tbl object, sf type
Other siteDrought functions:
siteDrought_avail_tables
(),
siteDrought_describe_table
(),
siteDrought_describe_var
(),
siteDrought
()
if (interactive()) {
siteDroughtdb <- lfcdata::siteDrought()
# sf tibble
lfcdata::siteDrought_get_data(siteDroughtdb,'data_day')
# we can uses pipes
siteDroughtdb |>
lfcdata::siteDrought_get_data('data_day')
# siteDroughtdb is an R6 object, so the previous examples are the same as:
siteDroughtdb$get_data('data_day')
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.