How do you get part of a string in R ?
use the function substr(string, start_index, end_index)
substr(string, start_index, end_index)
> substr("foobar", 1,3) [1] "foo"