applyTemplate
is called internally by mtable
to format coefficients and summary statistics.applyTemplate(x,template,float.style=getOption("float.style"),
digits=min(3,getOption("digits")),
signif.symbols=getOption("signif.symbols"))
formatC
by applyTemplate
; valid values
are "e"
, "f"
, "g"
, "fg"
,
"E"
signif.symbols
setting of
($:)
,
where "($
" indicates the start of a template expression,
"
" stands for either an index or name that selects an
element from x
and "
" stands for a
format specifier. It may contain an letter indicating the
style in which the vector element selected by
will be formatted by formatC
, it may contain
a number as the number of significant digits, a "#}"
indicating that the number of signifcant digits will be at most that given
by getOption("digits")
, or *
that means that
the value will be formatted as a significance symbol.
applyTemplate
returns a character vector in which template
expressions in template
are substituted by formatted values from x
.
If template
is an array then the return value is also an array of
the same shape.