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

2009-12-04 Thread Greg Snow
f Peng Yu > 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

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

2009-12-04 Thread Martin Maechler
"DW" == David Winsemius > 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 l

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 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 wonde

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 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 >> output fo

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 no

[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 https://stat.ethz.ch/mailm