Skip to contents

Get data for acoustic projects, with options to filter results.

Usage

get_acoustic_projects(connection = con, acoustic_project_code = NULL)

Arguments

connection

A connection to the ETN database. Defaults to con.

acoustic_project_code

Character (vector). One or more acoustic project codes. Case-insensitive.

Value

A tibble with acoustic project data, sorted by project_code. See also field definitions.

Examples

# Set default connection variable
con <- connect_to_etn()
#> Error: nanodbc/nanodbc.cpp:1135: 00000: [unixODBC][Driver Manager]Data source name not found and no default driver specified 

# Get all acoustic projects
get_acoustic_projects(con)
#> Error in methods::is(connection, "PostgreSQL"): object 'con' not found

# Get a specific acoustic project
get_acoustic_projects(con, acoustic_project_code = "demer")
#> Error in methods::is(connection, "PostgreSQL"): object 'con' not found