Skip to contents

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

Examples

if (FALSE) {
conn <- connect_idaifield(pwd = "hallo", project = "rtest")
index <- get_field_index(conn)

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