I have a column with names where the surnames are all upper case and the first names are all in lower case except the first letter. How can I split this up? Example: BIDEN Joe
names <- c("BIDEN Joe", "DE WEERDT Jan", "SCHEPERS Caro")
The result I want to achieve is to create to vectors/columns with in one the words with the capital letters so it becomes:
surnames <- c("BIDEN", "DE WEERDT", "SCHEPERS")
And in the other the first names:
first_names <- c("Joe", "Jan", "Caro")
Thank in advance