Hello everyone,
I'm quite new to R and was wondering whether someone could help me with the following: I am interested in how to sort/modify/grep the content of a cell in a column of a data frame:
this is an example of the content of 1 cell in this column: P(0.826)KTVQAAP(0.296)P(0.296)AIP(0.645)GP(0.539)P(0.536)GAP(0.949)VNM(0.912)Y
I would like to be able to separate the letters from the numbers, but I don't know if there is any R command and/or special package I'd have to use. I don't know if this is possible in the first place. Any help is greatly appreciated!
Thank you!
Elisa
Maybe you can clarify what you mean by 'separate the letters from the numbers.' I'm not sure how to interpret the contents of the cell. Do those letters represent amino acids? Do you want something like this?