How to define several split conditions in the strsplit function in the R programming language. More details: https://statisticsglobe.com/set-multi...
R code of this video:
my_string <- "aaaxbbbycccxddd" # Create example character string
my_string # Print example character string
strsplit(my_string, "x") # strsplit with one condition
strsplit(my_string, "x|y") # strsplit with multiple conditions
Follow me on Social Media:
Facebook – Statistics Globe Page: / statisticsglobecom
Facebook – R Programming Group for Discussions & Questions: / statisticsglobe
Facebook – Python Programming Group for Discussions & Questions: / statisticsglobepython
LinkedIn – Statistics Globe Page: / statisticsglobe
LinkedIn – R Programming Group for Discussions & Questions: / 12555223
LinkedIn – Python Programming Group for Discussions & Questions: / 12673534
Twitter: / joachimschork
Music by bensound.com