How to import data from email on R


I usually receive emails as follows:

When I import it, it appears like this

And I want it to look this way: . How can I get it?

You could use tidyr::separate(), if you need more specific help, please provide a proper REPRoducible EXample (reprex) illustrating your issue.

1 Like

the separate function in the tidyr package is essential.
You may also need to use some regex (regular expressions) to define the separators. The RVerbalExpressions package is often helpful for this.