confirm_strlen {validata} | R 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 |
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)
[Package validata version 0.1.0 Index]