Displaying 3 results from an estimated 3 matches for "na_width".
Did you mean:
_width
1999 Oct 13
1
formatReal()-bug (or Is there anybody out there w/o IEEE754?)
...1. (format.c:235) if (!R_FINITE ..) gives nanflag=1 (!naflag remains 0)
2. (format.c:272..288) *m gets an value of -2147483643 (from the format
fiddling, should not matter to us)
3. (format.c:289) because naflag is zero, m does not get the value of
R_print.na_width and we get back the unbelievable value
from 2.
This crashes R in commands as
as.vector(NA,mode="double")
.
(Please reply to my mail address too, because I do not read r-devel regularly).
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-...
2002 Aug 13
2
Misalignment of <NA> in rownames (PR#1905)
...d
MatrixColumnLabel (same file) rely on Rstrlen to count the characters in each
label, but Rstrlen doesn't understand NA's. Here's a patch, to be applied
between lines 242 ("int len;") and 243 ("len = 0;"):
if (s == CHAR(NA_STRING))
return quote ? R_print.na_width : R_print.na_width_noquote;
which solves the problem:
R-patched> x
A B C D
a 1 4 7 10
<NA> 2 5 8 11
c 3 6 9 12
-----------------------------------------------------------------------------
An NA in the colnames has similar misalignment problems:
R> x <- matrix(1:12,...
2003 May 02
2
Suppressing Scientific Notation
R gurus,
Every so often(*) someone asks how to suppress scientific notation in
printing, so I thought I'd give it a shot, but I need some help.
The formatting decision is made(**) on line 286 of src/main/format.c :
if (mF <= *m) { /* IFF it needs less space : "F" (Fixpoint) format */
where mF is the number of characters for "normal" printing and *m is the number