I have a dataframe like below:
structure(list(tissue = c("thymus", "leg muscle", "liver", "stromal cell of bone marrow",
"liver", "liver", "liver", "bone marrow", "skin", "balb/c"),
genotype = c("", "", "", "", "", "", "", "", "over-expressing PTN/OSF1,wild type genotype",
"")), row.names = c("S-4", "S-21", "S-25", "S-29", "S-47", "S-48", "S-49", "S-50", "S-61", "S-74"
), class = "data.frame")
This dataframe has two columns, one as tissue and the other as genotype which is a comma separated string. I would like to split the string based on comma and add rows with the splitted value and the same tissue.