I searched stackoverflow and couldn't find the answer. Sorry if this has been asked ...
I have a string with numbers and some numbers have letters ...
x = c("1", "12", "14A", "12B", "6")
I want to separate the number component to get 2 separate columns, 1 with numbers and 1 with the letters ...
x = c(1, 12, 14, 12, 6)
y = c(NA, NA, "A", "B", NA)
would appreciate any help.