File: makeNstr.Rd

package info (click to toggle)
hmisc 4.2-0-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster, sid
  • size: 3,332 kB
  • sloc: asm: 27,116; fortran: 606; ansic: 411; xml: 160; makefile: 2
file content (31 lines) | stat: -rw-r--r-- 857 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
\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}