
Last chance! 50% off unlimited learning
Sale ends in
StrLeft(x, n)
StrRight(x, n)
StrLeft
is a simple wrapper to substr
.substr
, StrTrim
StrLeft("Hello world!", n=5)
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