confirm_strlen: confirm string length

Description Usage Arguments Value Examples

View source: R/confirm_strlength.R

Description

returns a count table of string lengths for a character column. The helper function choose_strlen filters dataframe for rows containing specific string length for the specified column.

Usage

1
2
3
confirm_strlen(mdb, col)

choose_strlen(cs_output, len)

Arguments

mdb

dataframe

col

unquoted column

cs_output

dataframe. output from confirm_strlen

len

integer vector.

Value

prints a summary and returns a dataframe invisibly

dataframe with original columns, filtered to the specific string length

Examples

1
2
3
4
5
6
7
8
iris %>%
tibble::as_tibble() %>%
confirm_strlen(Species) -> iris_cs_output

iris_cs_output

iris_cs_output %>%
choose_strlen(6)

validata documentation built on Oct. 5, 2021, 9:08 a.m.