Skip to contents

Check if a list column of formats contains any of the specified values.

Usage

has_format(formats, values)

Arguments

formats

A list column from list_datasets(full = TRUE)

values

Character vector of format names (e.g., "pdb", "cif")

Value

Logical vector, TRUE where any value matches

Examples

if (FALSE) { # \dontrun{
# Datasets with CIF files
list_datasets(full = TRUE) |>
  filter(has_format(formats, "cif"))
} # }