Function to convert the character vector column to a Boolean matrix
Usage
md_convert_charsets_to_boolean_matrix(xs)
Arguments
- xs
The list of integer sets
Value
Boolean matrix representing each of the integer sets
Examples
xs <- c("{1,2}", "{2,3}", "{2}")
print(md_convert_charsets_to_boolean_matrix(xs))
#> [,1] [,2] [,3]
#> [1,] TRUE TRUE FALSE
#> [2,] FALSE TRUE TRUE
#> [3,] FALSE TRUE FALSE
## [,1] [,2] [,3]
## [1,] TRUE TRUE FALSE
## [2,] FALSE TRUE TRUE
## [3,] FALSE TRUE FALSE