form3line: prints a separator line from a given pattern

Description Usage Arguments Value See Also Examples

View source: R/rbsa1.code.r

Description

Prints a separator line from a given pattern. The line can be composite with the width argument. The pattern can comprise more than one character. General indentation is possible (gind). Even lines can have a different pattern(pat2).

Usage

1
2
3
4
 
  form3line(len=50,pat="-_-",wid=3,
            gind="",pat2="_-_",
            imp=TRUE) 

Arguments

len

Line length (without the general indentation).

pat

Pattern to use.

wid

Number of elementary lines.

gind

String to introduce as general indentation.

pat2

Pattern to use for the even lines. If NULL, the pattern is common to all lines.

imp

Printing when TRUE or returning (FALSE)

Value

character string or printing according to imp

See Also

form3repeat

Examples

1
2
3
4
 
  form3line(); 
  form3line(gind="^^^"); 
  form3line(pat="+",wid=1,gind="   ",pat2=NULL); 

rbsa documentation built on May 2, 2019, 6:07 p.m.