mirror of
https://github.com/agdamsbo/stRoke.git
synced 2024-11-23 21:40:22 +01:00
38 lines
793 B
R
38 lines
793 B
R
% Generated by roxygen2: do not edit by hand
|
|
% Please edit documentation in R/add_padding.R
|
|
\name{add_padding}
|
|
\alias{add_padding}
|
|
\title{MOVED Add padding to string}
|
|
\usage{
|
|
add_padding(
|
|
d,
|
|
length = NULL,
|
|
after = FALSE,
|
|
pad = "0",
|
|
lead = NULL,
|
|
tail = NULL
|
|
)
|
|
}
|
|
\arguments{
|
|
\item{d}{vector of strings or numbers}
|
|
|
|
\item{length}{final string length}
|
|
|
|
\item{after}{if padding should be added after as opposed to default before}
|
|
|
|
\item{pad}{padding string of length 1}
|
|
|
|
\item{lead}{leading string for all. Number or character vector. Cycled.}
|
|
|
|
\item{tail}{tailing string for all. Number or character vector. Cycled.}
|
|
}
|
|
\value{
|
|
vector or character strings of same length.
|
|
}
|
|
\description{
|
|
MOVED Add padding to string
|
|
}
|
|
\examples{
|
|
add_padding(sample(1:200,5),tail="AA",lead=c(2,3,"e"))
|
|
}
|