는 숫자에 대해 이렇게 말한다 :
‘digits’: controls the number of digits to print when printing
numeric values. It is a suggestion only. Valid values are
1...22 with default 7. See the note in ‘print.default’ about
values greater than 15.
핵심 문구는 "그것은 단지 제안이다"입니다.
다음으로 인쇄되는 내용은 처음에 print()
메서드가 적용됩니다 (대화식으로 사용하는 동안 숨김) (R auto- print()
). 자세한 내용은 기본 방법은 ?print
및 ?print.default
을 참조하십시오. ?print.default
에서 우리는
digits: a non-null value for ‘digits’ specifies the minimum number of
significant digits to be printed in values. The default,
‘NULL’, uses ‘getOption(digits)’. (For the interpretation
for complex numbers see ‘signif’.) Non-integer values will
be rounded down, and only values greater than or equal to 1
and no greater than 22 are accepted.
주의와 세부 절에서 우리는이 :
The same number of decimal places is used throughout a vector.
This means that ‘digits’ specifies the minimum number of
significant digits to be used, and that at least one entry will be
encoded with that minimum number. However, if all the encoded
elements then have trailing zeroes, the number of decimal places
is reduced until at least one element has a non-zero final digit.
Decimal points are only included if at least one decimal place is
selected.
digits
의 기본값은
getOption("digits")
를 사용하는 것을 나타냅니다 만, 우리가 이미 언급 한 바와 같이, 그건입니다
NULL
입니다
가이드 전용.
R을 구성하여 원하는 작업을 수행하거나 글로벌하게 수행 할 수있는 방법이없는 것 같습니다. print.default()
또는 사용하려는 모든 print()
메서드를 다시 작성해야하며 표준 버전 대신이 버전을 사용해야합니다. 이제 NAMESPACES에서는 쉽지 않습니다.
예상되는 출력을 줄 수 있습니까? 'lun'의 coef를'0.000000'으로 출력 하시겠습니까? –
네, 다른 정밀도를 명시 적으로 지정하지 않으면 0.000000을 갖고 싶습니다. –