I have a vector with gene names where several elements in the vector contains more than one gene name, separated with a comma. How can I separate the elements of this vector and get a long vector with each gene name as a separate element of the vector? I have tried strsplit but that just give me the two or more gene names as separated strings but still in the same element of the vector... /Frida
genes = c("PGD", "CDA", "MROH7,TTC4", "PGM1")
and I want to separate the element "MROH7,TTC4"
into the two elements "MROH7"
and "TTC4"