fast sorting and pasting of 2 character columns in a data.table
Examples
x <- data.table::data.table(x = 1:3, y = 5:7)
dt_sort_combine_two_columns(x, column1 = "x", column2 = "y")
#> x y unif_gene_gene
#> <char> <char> <char>
#> 1: 1 5 1--5
#> 2: 2 6 2--6
#> 3: 3 7 3--7
x
#> x y unif_gene_gene
#> <char> <char> <char>
#> 1: 1 5 1--5
#> 2: 2 6 2--6
#> 3: 3 7 3--7