Skip to contents

This function simply does a strsplit() routine, and will do this for sub-components as well.

Usage

split_segment(
  segment,
  FieldSeparator = "|",
  ComponentSeparator = "^",
  SubcomponentSeparator = "&",
  FieldRepeatSeparator = "~"
)

Arguments

segment

a character vector

FieldSeparator

character, splits this

ComponentSeparator

character, splits this

SubcomponentSeparator

character, splits this

FieldRepeatSeparator

character, splits this