Table Transformer: obtain a summary table for string columns
Table Transformer: obtain a summary table for string columns
With any table object, you can produce a summary table that is scoped to string-based columns. The output summary table will have a leading column called ".param." with labels for each of the three rows, each corresponding to the following pieces of information pertaining to string length:
Mean String Length ("length_mean")
Minimum String Length ("length_min")
Maximum String Length ("length_max")
Only string data from the input table will generate columns in the output table. Column names from the input will be used in the output, preserving order as well.
tt_string_info(tbl)
Arguments
tbl: A data table
obj:<tbl_*> // required
A table object to be used as input for the transformation. This can be a data frame, a tibble, a tbl_dbi object, or a tbl_spark object.
Returns
A tibble object.
Examples
Get string information for the string-based columns in the game_revenue
dataset that is included in the pointblank package.