[R] Long character not truncated by str() after adding comment
Chris Stubben
stubben at lanl.gov
Wed Jul 22 20:16:51 CEST 2009
If I add a comment to a long character string, I can't get the truncated
string to display in the str() output. Anyone know how to get str to
compactly display a truncated string and the comment?
longch <- paste(rep(letters,100), collapse="")
str(longch) # truncated
comment(longch)<-"100 ABCs"
str(longch) # not truncated
Thanks,
Chris Stubben
--
View this message in context: http://www.nabble.com/Long-character-not-truncated-by-str%28%29-after-adding-comment-tp24611767p24611767.html
Sent from the R help mailing list archive at Nabble.com.
More information about the R-help
mailing list