Learn R Programming

do (version 2.0.0.1)

rm_nchar: Remove elements by number of characters

Description

Remove elements by number of characters

Usage

rm_nchar(x, least, most)

Value

removed vector

Arguments

x

one vector

least

least number of characters

most

most number of characters

Examples

Run this code
x <- c('a','abc','abcd',NA)
rm_nchar(x,least = 1)
rm_nchar(x,most = 4)
rm_nchar(x,least = 1, most = 4)

Run the code above in your browser using DataLab