I need to split and obtain the all the characters before ^
example: I have a column in a dataframe that reads
2567543^ABC
7545435^J
8934939^XY
and the result column in the same dataframe should read:
2567543
7545435
8934939
I tried using stringr
, strsub{base}
, stringi
, gsubfn
. But they are throwing weird results because ^
. I cannot replace ^
because the table is simply huge.