I have a list of proteins in a column but they all end with _l how do I remove _l from proteins ? example:
nr2_l , nr1_l , pkca_l , p_lr1_l , p_ln_l
separate(protein_exp, c("protein", "l"), "_l")
but this then separates protein **p_lr1_l ** to :
protein | l |
---|---|
p | r1 |
I want it to be : | protein | l | | --------| -------- | | p_lr1 | _l |
Thanks