right_xl {NHSDataDictionaRy} | R Documentation |
This function replicates the RIGHT function in Excel and is utilised for right trimming of character strings.
right_xl(text, num_char = 0)
text |
The text you want to RIGHT trim |
num_char |
The number of characters your want to trim by. This field needs to be numeric. |
This has been included as a convenience function for working with text and string data.
The trimmed string from the text parameter and trimming by the number of characters num_char passed to the parameter.
right_xl(text= "This is some example text", num_char = 10)
right_xl(text= "This is some example text", num_char = 10)