Delist, Unname and Split a String
Examples
# unnamed vector
desplit("XYZ")
#> [1] "X" "Y" "Z"
# named vector
desplit(c(x = "XYZ"))
#> [1] "X" "Y" "Z"
# unnamed list with one element
desplit(list("XYZ"))
#> [1] "X" "Y" "Z"
# unnamed list with multiple elements
desplit(list("YYY", "ZZZ"))
#> [[1]]
#> [1] "Y" "Y" "Y"
#>
#> [[2]]
#> [1] "Z" "Z" "Z"
#>
# named list with one element
desplit(list(x = "XYZ"))
#> [1] "X" "Y" "Z"
# named list with multiple elements
desplit(list(x = "YYY", xx = "ZZZ"))
#> [[1]]
#> [1] "Y" "Y" "Y"
#>
#> [[2]]
#> [1] "Z" "Z" "Z"
#>