# NOT RUN {
left("hello world", 2) # returns 'he'
left(c("hello", "world"), 2) # returns vector c('he', 'wo')
left(c("hello", "world"), c(1,3)) # returns vector c('h', 'wor')
left("hello world", 80) # returns 'hello world'
# }
Run the code above in your browser using DataLab