Skip to contents

Helper to look to guess uuid name

Usage

detect_uuid(dataset, name_to_search = "uuid")

Arguments

dataset

dataset to look from

name_to_search

pattern to search, default is "uuid"

Value

text vector with the name to search. If there is 0 or 2 or more possible ansers, it will give an error.

Examples

test1_df <- data.frame(uuid = letters,
                          x = runif(26),
                          hello = LETTERS)
detect_uuid(test1_df)
#> [1] "uuid"