right_xl: right_xl function

Description Usage Arguments Details Value Examples

View source: R/right_xl.R

Description

This function replicates the RIGHT function in Excel and is utilised for right trimming of character strings.

Usage

1
right_xl(text, num_char = 0)

Arguments

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.

Details

This has been included as a convenience function for working with text and string data.

Value

The trimmed string from the text parameter and trimming by the number of characters num_char passed to the parameter.

Examples

1
2
3
4
right_xl(text= "This is some example text", num_char = 10)


right_xl(text= "This is some example text", num_char = 10)

NHSDataDictionaRy documentation built on July 9, 2021, 5:08 p.m.