siteDrought_get_data: Access to the tables in the siteDrought database

View source: R/lfc_SiteDrought.R

siteDrought_get_dataR Documentation

Access to the tables in the siteDrought database

Description

siteDrought_get_data is a wrapper for the $get_data method of lfcsiteDrought objects. See also siteDrought.

Usage

siteDrought_get_data (object, table_name)

Arguments

object

lfcsiteDrought object, as created by siteDrought

table_name

character vector of lenght 1 indicating the requested table name

Details

Connection to database can be slow. Tables retrieved from the db are stored in a temporary cache inside the lfcsiteDrought object created by siteDrought

Value

A tbl object, sf type

See Also

Other siteDrought functions: siteDrought_avail_tables (), siteDrought_describe_table (), siteDrought_describe_var (), siteDrought ()

Examples

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')

}

MalditoBarbudo/lfcdata documentation built on May 2, 2023, 10:30 p.m.