replace_uid: Replace a Vector of UUIDs with their _identifier_s

View source: R/replace_uid.R

replace_uidR Documentation

Replace a Vector of UUIDs with their identifiers

Description

When handed an item (a vector or a single variable) first checks if it is actually a UUID as defined in check_if_uid() and if so, replaces it with the corresponding identifier from the uidlist (also handed to the function).

Usage

replace_uid(uidvector, uidlist)

Arguments

uidvector

a vector of UUIDs to be replaced with their identifiers

uidlist

a uidlist resp. index of as returned by get_uid_list() and get_field_index()

Value

The corresponding identifier(s) (a character string/vector)

See Also

  • This function is used in: simplify_idaifield(), fix_relations()

Examples

## Not run: 
conn <- connect_idaifield(pwd = "hallo", project = "rtest")
index <- get_field_index(conn)

replace_uid("02932bc4-22ce-3080-a205-e050b489c0c2", uidlist = index[, c("identifier", "UID")])

## End(Not run)

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