Displaying 1 result from an estimated 1 matches for "sabcuuu".
2005 Oct 28
3
splitting a character field in R
...haracter
field into two using an existing substring.
... something that in SAS I could solve e.g. combining substr(which I am
aware exist in R) and "index" for determining the position of the pattern
within the string.
e.g. if my dataframe is ...
A B
1 dgabcrt
2 fgrtabc
3 sabcuuu
Then by splitting by substring "abc" I would get ...
A B B1 B2
1 dgabcrt dg rt
2 fgrtabc fgrt
3 sabcuuu s uuu
Do you know how to do this basic string(dataframe) manipulation in R
Saludos,
Manuel