limit_character {dateutils} | R Documentation |
Limit Characters
Description
limit the number of characters in a string and remove spacial characters (will not drop numbers)
Usage
limit_character(x, limit = 100)
Arguments
x |
object containing character values |
limit |
maximum number of characters to return |
Value
Character values within the limit
Examples
limit_character("a%b+&cd!efghij",limit = 3) ## "abc"
[Package dateutils version 0.1.5 Index]