StrLeft("Hello world!", n=5)
StrLeft("Hello world!", n=-5)
StrRight("Hello world!", n=6)
StrRight("Hello world!", n=-6)
StrLeft(c("Lorem", "ipsum", "dolor","sit","amet"), n=2)
StrRight(c("Lorem", "ipsum", "dolor","sit","amet"), n=c(2,3))
Run the code above in your browser using DataLab