String

R string split by pattern

When obtaining data, the raw data could be messy. In this article, I’ll give some examples on how to split a string or a column to multiple strings or multiple columns by using Regex or pattern.