powered by
Truncate Characters from the Inside
mid(x, start, n)
can be number, strings, verctors, dataframe or matrix.
starting position
length, n can be less than zero
substring
# NOT RUN { mid("abcd",3,1) mid(c("abc","gjh"),2,2) df = data.frame( a = c(123,234,456), b = c("abc","bcd","hjg") ) mid(df,2,1) mid(df,2,-2) # }
Run the code above in your browser using DataLab