format.default(x, scientific = c(-4, 4), digits = .Options$digits, big.mark = "", big.interval = 3, small.mark = "", small.interval = 5, nsmall = 0, justify = "decimal", decimal.mark = ".")
x
.
If numeric, then numbers with exponents strictly within this range will
not be printed in scientific notation.
"none"
,
"left"
,
"right"
and
"decimal"
.
Only the first letter needs to be given.
s place and the one-tenth
s place).
x
, but of mode
"character"
.
If given the single argument
x
,
format.default
takes
all elements of
x
and turns
them into character form using a common format, just as they
would be printed by the
print.atomic
function.
This ensures that all elements of the value have the
same number of characters and have decimal places aligned.
If more than one argument is given and
x
is numeric, then the result
will vary from that produced by
print.atomic
.
If
justify
is set to
"none"
, then there are no spaces around the
numbers.
In all other cases, the number of characters in each string is equal.
For
"left"
all of the spaces are at the end of the strings;
for
"right"
all spaces are at the beginning;
and the
"decimal"
option may place spaces both at the
beginning and at the end in order to have all of the decimal places line up.
format(hstart,scientific=T, nsmall=3) format(pnorm(2:7), nsmall=15, digits=15, small.mark=" ") format(c(1e6,2.3e6), nsmall=2, scientific=F) # francais format(c(1e6,2.3e6), nsmall=2, scientific=F, decimal=",", big.mark=".")