Get data for cpod projects, with options to filter results.
Arguments
- connection
A connection to the ETN database. Defaults to
con
.- cpod_project_code
Character (vector). One or more cpod project codes. Case-insensitive.
Value
A tibble with animal 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 animal projects
get_cpod_projects(con)
#> Error in methods::is(connection, "PostgreSQL"): object 'con' not found
# Get a specific animal project
get_cpod_projects(con, cpod_project_code = "cpod-lifewatch")
#> Error in methods::is(connection, "PostgreSQL"): object 'con' not found