Load all annotations for a specific class from the database
Source:R/database.R
load_class_annotations_db.RdReturns every annotation matching class_name, with a computed
file_name column for gallery display. Optional filters restrict
results by year, month, or instrument.
Usage
load_class_annotations_db(
db_path,
class_name,
year = NULL,
month = NULL,
instrument = NULL,
annotator = NULL
)Value
Data frame with columns sample_name, roi_number,
class_name, and file_name. Returns NULL if no
annotations match.
Examples
if (FALSE) { # \dontrun{
db_path <- get_db_path("/data/manual")
diatoms <- load_class_annotations_db(db_path, "Diatom")
diatoms_2023 <- load_class_annotations_db(db_path, "Diatom", year = "2023")
} # }