search for: clabw

Displaying 1 result from an estimated 1 matches for "clabw".

Did you mean: clabs
2002 Aug 13
2
Misalignment of <NA> in rownames (PR#1905)
..., 3,4, dimnames=list(letters[1:3], LETTERS[1:4])) R> colnames(x)[2] <- NA R> x A <NA> C D a 1 4 7 10 b 2 5 8 11 c 3 6 9 12 But this time it's because lines 72, 139, 213, 299, and 375 of src/main/printarray.c use "strlen", which doesn't know about NA's: clabw = strlen(CHAR(STRING_ELT(cl, j))); My patch is to replace "strlen" with "Rstrlen" in each case: clabw = Rstrlen(CHAR(STRING_ELT(cl, j)), 0); and again this solves the problem: R-patched> x A <NA> C D a 1 4 7 10 b 2 5 8 11 c 3 6 9 12 ------------------...