I have a Matrix as shown:

```
A                B          
c("A,"B","A")    c("Pink","blue")

```

What I want:

```
A                B
A,B              Pink,Blue

```

Data from `dput()`:

```
structure(list(c("PARP", "BRCA1", "BRCA2", "PARP-1/2", "BRCA" ), 
               c("ovarian, fallopian tube", "peritoneal cancer", "tumor", 
                 "toxicity", "ovarian cancer", "thrombocytopenia", "fatigue", 
                 "nausea", "leukopenia", "neutropenia", "vomiting", "anemia"), 
               NULL, 
               c("veliparib", "Veliparib", "platinum"), 
               "patients", 
               25818403), 
          .Dim = c(1L, 6L), 
          .Dimnames = list(NULL, 
                           c("Genes", "Diseases", "Mutations", 
                             "Chemicals", "Species", "PMID"))) 

```

I tried using seperator function and strsplit function but could not achieve the desired results.Any help would be appreciated. Thanks!