mid_xl {NHSDataDictionaRy} | R Documentation |
This function replicates the MID function in Excel and is utilised for left trimming of character strings.
mid_xl(text, start_num = 1, num_char = 0)
text |
The text you want to MID trim |
start_num |
The start number to start the trim. This needs to be numeric. |
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 extracted text between the start_num and the num_char to produce a sub string result.
mid_xl(text= "This is some example text", start_num = 6, num_char = 10)
mid_xl(text= "This is some example text", start_num = 6, num_char = 10)