excel right() function in R
2014/10/27
as part of the** excel functions in R,** I have developed this custom function, reproducing the excel right() function in th R language. Feel free to copy and use it.
[code language=“r”]
right = function (string, char){
substr(string,nchar(string)-(char-1),nchar(string))}
[/code]
you can find other function in the Excel functions in R post.
tags:
analytics /data /data analysis /data analytics /excel /excel spreadsheet /functions /R /
excel left() function in R
2014/10/27
as part of the excel functions in R, I have developed this custom function, emulating the excel left() function in th R language. Feel free to copy and use it.
left = function (string,char){
substr(string,1,char)}
you can find other function in the** Excel functions in R post**.
tags:
analytics /data /data analysis /data analytics /excel /functions /R /