get_opp2_table: Return a tibble for the opp2 table.

View source: R/db.R

get_opp2_tableR Documentation

Return a tibble for the opp2 table.

Description

If the opp2 table does not exist in the database this function will return an empty tibble.

Usage

get_opp2_table(
  db,
  sfl_join = TRUE,
  all_sfl_columns = FALSE,
  outlier_join = TRUE,
  file_flag_filter = FALSE
)

Arguments

db

SQLite3 database file path.

sfl_join

Join to sfl table by file ID, adding a date column and removing opp2 entries with no corresponding SFL entry.

all_sfl_columns

If joining to sfl, include all sfl columns.

outlier_join

Left join to outlier table by file ID, adding an outlier flag column. This function will not perform any filtering by outlier flag.

file_flag_filter

Filter by file_flag column. If TRUE, only keep files with file_flag == 0.

Value

Tibble of opp2 table.


uwescience/popcycle documentation built on Jan. 29, 2025, 9:50 a.m.