match_type_strings: Match Type Strings to Types

View source: R/fallingfruit.R

match_type_stringsR Documentation

Match Type Strings to Types

Description

Returns the ids of the Falling Fruit types matching each type string.

Usage

match_type_strings(type_strings, types = get_ff_types(pending = FALSE, urls =
  FALSE))

Arguments

type_strings

Character vector of type strings.

types

Falling Fruit types.

Value

List of Falling Fruit type ids matching each element in type_strings.

See Also

Other Falling Fruit functions: build_location_descriptions, build_location_description, build_type_strings, expand_category_mask, get_ff_types, normalize_type_strings, parse_type_strings

Examples

ff_types <- get_ff_types()
match_type_strings("Apple", ff_types)
match_type_strings(c("Apple [Malus domestica]", "Pear [Pyrus]"), ff_types)

falling-fruit/fruitr documentation built on Dec. 21, 2024, 8:32 p.m.