When extracting data from a PDF file in R, when extracting text line by line, I have the following situation. A string of interest containing three pieces of information separated by spaces, as shown below.
a <- "João Fernando Freitas 123546514 sdfasfasfa"
The information that interests me is the first term in the chain, its name. I would like a method to extract only the name of the string, ignoring the rest
Like many PDF files, I would need a method to insert into a loop and scale up the process.