https://github.com/cran/Hmisc
Raw File
Tip revision: 7d8be7014490ce10a945c8d4a155ffc4c3bf46c3 authored by Charles Dupont on 06 April 2006, 00:00:00 UTC
version 3.1-2
Tip revision: 7d8be70
makeNstr.Rd
\name{makeNstr}
\alias{makeNstr}
%- Also NEED an '\alias' for EACH other topic documented here.
\title{ creates a string that is a repeat of a substring }
\description{
Takes a character and creates a string that is the character repeated \code{len} times.
}
\usage{
makeNstr(char, len)
}
%- maybe also 'usage' for other objects documented here.
\arguments{
  \item{char}{ character to be repeated }
  \item{len}{ number of times to repeat \code{char}. }
}
\value{
  A string that is \code{char} repeated \code{len} times.
}
\author{ Charles Dupont }
\seealso{ \code{\link[base]{paste}}, \code{\link[base]{rep}} }
\examples{
makeNstr(" ", 5)

\dontshow{
if(makeNstr(" ", 5) != "     ") stop("makeNstr failed test")
}
}
\keyword{ manip }% at least one, from doc/KEYWORDS
\keyword{ character }% __ONLY ONE__ keyword per line
\concept{string}
\concept{concat}
back to top