substring(text, first, last=1000000)
substring(state.name,1,8) # first 8 chars of state names substring(state.name[1:10], 1, c(4,4,3,3,2,3,3,2,2,2))substring("xxxxxxxxxx",1,1:10) # "x" "xx" "xxx" ...
substring("This is a test",6) # start from 6th char