Connect to instance of LTER-core-metabase and query for metadata.

get_meta(dbname, schema = "mb2eml_r", dataset_ids, host = "localhost",
  port = 5432, user = NULL, password = NULL)

Arguments

dbname

(character) name of database.

schema

(character) name of schema containing views. Defaults to 'mb2eml_r'.

dataset_ids

(numeric) Number or numeric vector of dataset IDs to query.

host

(character) host name or IP address. Defaults to 'localhost'.

port

(numeric) port number. Defaults to 5432.

user

(character) (optional) username to use in connecting to database. Use to save time. If not supplied, the R console will prompt you to enter a username.

password

(character) (optional) password to user. Use to save time. If not supplied, the R console will prompt you to enter a password.

Value

(list) A list of data frames corresponding to views from specified schema in metabase to pass to create_entity, create_entity_all and create_EML

Examples

# NOT RUN {
# Can query multiple datasets at once
metadata <- get_meta(dbname = "ble_metabase", dataset_ids = c(1, 2))
# }