pad_auto: pad auto

View source: R/pad_cols.R

pad_autoR Documentation

pad auto

Description

Automatically pads elements of a column to the largest sized element. Useful when an integer code with leading zeros is read in as an integer and needs to be fixed.

Usage

pad_auto(mdb, ..., side = "left", pad = "0")

Arguments

mdb

data frame

...

tidyselect specification

side

str_pad side

pad

str_pad pad

Value

data frame

Examples


# good for putting leading 0's

tibble::tibble(x = 1:10) %>%
  pad_auto(x)

Harrison4192/dataCleaner documentation built on March 20, 2024, 3:12 p.m.