Truncate Characters from the Left
left(x, n)
can be number, strings, verctors, dataframe or matrix.
length
substring
# NOT RUN { left("abcd",3) left(c("abc","gjh"),2) df = data.frame( a = c(123,234,456), b = c("abc","bcd","hjg") ) left(df,2) # }
Run the code above in your browser using DataLab