Skip to content

Placement of attributes

1 message · U-E59264-Osman Buyukisik

#
Peter Dalgaard writes:
Yes, that does help.   
...

478          PROTECT(rl = getAttrib(x, install("row.names")));

....

545          if (!isNull(rl)) formatString(STRING(rl), r, &rlabw, 0);
 
I guess if row.names are not strings, then the above line causes seg
fault.

Somehow in the first example they are coerced into strings because
they came after c("xxx" , ...). In the second example row.names comes
after c(2 , ...) .

Is there a way to check to see it rl contains strings?

Osman



-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-devel mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-devel-request@stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._