Re: [R] shorten str() output for long list

2009-12-04 Thread Martin Maechler
DW == David Winsemius dwinsem...@comcast.net on Fri, 4 Dec 2009 01:18:56 -0500 writes: DW On Dec 3, 2009, at 10:11 PM, Peng Yu wrote: x=split(1:1000,1:1000) str(x) Although str() can suppress long output for vectors, but it can not suppress long output for

Re: [R] shorten str() output for long list

2009-12-04 Thread Greg Snow
Sent: Thursday, December 03, 2009 8:11 PM To: r-h...@stat.math.ethz.ch Subject: [R] shorten str() output for long list x=split(1:1000,1:1000) str(x) Although str() can suppress long output for vectors, but it can not suppress long output for list. I'm wondering how to suppress the output

[R] shorten str() output for long list

2009-12-03 Thread Peng Yu
x=split(1:1000,1:1000) str(x) Although str() can suppress long output for vectors, but it can not suppress long output for list. I'm wondering how to suppress the output for long lists. __ R-help@r-project.org mailing list

Re: [R] shorten str() output for long list

2009-12-03 Thread David Winsemius
On Dec 3, 2009, at 10:11 PM, Peng Yu wrote: x=split(1:1000,1:1000) str(x) Although str() can suppress long output for vectors, but it can not suppress long output for list. I'm wondering how to suppress the output for long lists. Very simple ... You examine the code (for str.default it's

Re: [R] shorten str() output for long list

2009-12-03 Thread Peng Yu
On Fri, Dec 4, 2009 at 12:18 AM, David Winsemius dwinsem...@comcast.net wrote: On Dec 3, 2009, at 10:11 PM, Peng Yu wrote: x=split(1:1000,1:1000) str(x) Although str() can suppress long output for vectors, but it can not suppress long output for list. I'm wondering how to suppress the

Re: [R] shorten str() output for long list

2009-12-03 Thread Henrik Bengtsson
str(head(x)) str(head(x, n=5)) /H On Thu, Dec 3, 2009 at 10:18 PM, David Winsemius dwinsem...@comcast.net wrote: On Dec 3, 2009, at 10:11 PM, Peng Yu wrote: x=split(1:1000,1:1000) str(x) Although str() can suppress long output for vectors, but it can not suppress long output for list.