Learn R Programming

dateutils (version 0.1.5)

limit_character: 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

Run this code
# NOT RUN {
limit_character("a%b+&cd!efghij",limit = 3)  ## "abc"
# }

Run the code above in your browser using DataLab