remove_config_names: Remove Everything Before the Colon in a Character Vector

View source: R/simplify_utilities.R

remove_config_namesR Documentation

Remove Everything Before the Colon in a Character Vector

Description

This function removes everything before the first colon (including the colon) in a character vector. It is used as a helper function for simplify_idaifield().

Usage

remove_config_names(
  conf_names = c("identifier", "configname:test", "test"),
  silent = FALSE
)

Arguments

conf_names

A character vector.

silent

Should the message that duplicates were detected be suppressed? Default is FALSE.

Value

The same character vector with everything before the first colon (including the colon) removed.

See Also

  • This function is used by: simplify_idaifield(), get_field_index() and get_uid_list()

Examples

## Not run: 
nameslist <- c("relation.liesWithin", "relation.liesWithinLayer",
"campaign.2022", "rtest:test", "pergamon:neuesFeld")
remove_config_names(nameslist, silent = FALSE)

## End(Not run)

lsteinmann/idaifieldR documentation built on April 3, 2025, 2:06 p.m.