refdb_filter_seq_length: Filter sequences based on their number of character.

View source: R/refdb_filter.R

refdb_filter_seq_lengthR Documentation

Filter sequences based on their number of character.

Description

Filter sequences based on their number of character.

Usage

refdb_filter_seq_length(x, min_len = NULL, max_len = NULL, gaps = FALSE)

Arguments

x

a reference database.

min_len, max_len

minimum and maximum sequence lengths. Use NULL (default) to ignore.

gaps

if TRUE gaps are accounted.

Value

A tibble (filtered reference database).

Examples

lib <- read.csv(system.file("extdata", "baetidae_bold.csv", package = "refdb"))
lib <- refdb_set_fields_BOLD(lib)
refdb_filter_seq_length(lib, 50L)


refdb documentation built on Sept. 22, 2022, 5:07 p.m.