Convert a string to a uuid by inserting hyphens in the right places

str_to_uuid(input_string)

Arguments

input_string

A 32-character string to convert to a uuid

Value

A string formatted as a uuid

Examples

str_to_uuid("f3f6bf4b9c424b6fbd90bece1418a415")
#> Error in str_c(str_sub(input_string, 1, 8), str_sub(input_string, 9, 12), str_sub(input_string, 13, 16), str_sub(input_string, 17, 20), str_sub(input_string, 21, 32), sep = "-"): could not find function "str_c"
str_to_uuid("3a126f041a9e4127978bb6544a099d0d")
#> Error in str_c(str_sub(input_string, 1, 8), str_sub(input_string, 9, 12), str_sub(input_string, 13, 16), str_sub(input_string, 17, 20), str_sub(input_string, 21, 32), sep = "-"): could not find function "str_c"