So I have a big data frame. The sample ID column contains a list of variations on lcl|TP102920_hit_64. All start with lcl|...etc.
Unfortunately, later in my code having | becomes a problem. Is there a way to remove all the | from my data? I have tried:
gsub(|,"",data)
recode(data, "|"="")
chartr("|","   ",data)
sub("|","",data)
str_replace_all(data,"|","")
gsubfn("|",data,"")
and variations using "",  //,  \\\ and $ for fun. All I have managed to do is completely destroy the data frame. Any suggestions?
 
    