rm_nchar: Remove elements by number of characters

View source: R/rm_nchar.R

rm_ncharR Documentation

Remove elements by number of characters

Description

Remove elements by number of characters

Usage

rm_nchar(x, least, most)

Arguments

x

one vector

least

least number of characters

most

most number of characters

Value

removed vector

Examples

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

do documentation built on Sept. 12, 2024, 6:27 a.m.