Displaying 2 results from an estimated 2 matches for "na_width_noquote".
2002 Aug 13
2
Misalignment of <NA> in rownames (PR#1905)
...(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, 3,4, dimnames=list(letters[...
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