| 1 |
% Generated by roxygen2: do not edit by hand |
| 2 |
% Please edit documentation in R/utils-formatting.R |
| 3 |
\name{pad_right} |
| 4 |
\alias{pad_right} |
| 5 |
\alias{pad_left} |
| 6 |
\title{Pad Character Vectors} |
| 7 |
\arguments{ |
| 8 |
\item{x}{a \code{character} vector} |
| 9 |
|
| 10 |
\item{width}{\code{integer} scalar. target string width} |
| 11 |
|
| 12 |
\item{pad}{\code{character} scalar. the symbol to pad with} |
| 13 |
} |
| 14 |
\description{ |
| 15 |
Pad Character Vectors |
| 16 |
} |
| 17 |
\examples{ |
| 18 |
pad_left("foo", 5) |
| 19 |
pad_right("foo", 5, ".") |
| 20 |
pad_left(c("foo", "foooooo"), pad = ".") |
| 21 |
} |