normalize_type_strings: Normalize Type Strings

View source: R/fallingfruit.R

normalize_type_stringsR Documentation

Normalize Type Strings

Description

Checks type strings against Falling Fruit types and fills in any missing components.

Usage

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

Arguments

type_strings

Character vector of type strings as comma-delimited lists.

types

Falling Fruit types

Value

Character vector of complete type strings as comma-delimited lists.

See Also

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

Examples

ff_types <- get_ff_types()
## Not run: 
normalize_type_strings("Apple", ff_types)

## End(Not run)
normalize_type_strings(c("14", "Apple [Malus]"), ff_types)
normalize_type_strings(c("", " ,", NA), ff_types)
normalize_type_strings(c("14: Apple, 14: Apple"), ff_types)
normalize_type_strings("Hello World", ff_types)

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