confirm_strlen: confirm string length

View source: R/confirm_strlength.R

confirm_strlenR Documentation

confirm string length

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

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


iris %>%
tibble::as_tibble() %>%
confirm_strlen(Species) -> iris_cs_output

iris_cs_output

iris_cs_output %>%
choose_strlen(6)

Harrison4192/validata documentation built on April 14, 2025, 10:25 a.m.