From: S. B. Gray on 14 Jul 2010 05:35 Is there anything like Print[hugetable,{10}] which would show the first 10 elements of hugetable? One can do it by making a new table but there should be an immediate way. Steve Gray
From: Bill Rowe on 15 Jul 2010 03:10 On 7/14/10 at 5:35 AM, stevebg(a)ROADRUNNER.COM (S. B. Gray) wrote: >Is there anything like Print[hugetable,{10}] which would show the >first 10 elements of hugetable? One can do it by making a new table >but there should be an immediate way. Easily done. Do Print[hugetable[[;;10]]]
From: Tomas Garza on 15 Jul 2010 03:11 Try Shallow or Short. -Tomas > Date: Wed, 14 Jul 2010 05:35:55 -0400 > From: stevebg(a)ROADRUNNER.COM > Subject: Printing part of table > To: mathgroup(a)smc.vnet.net > > Is there anything like Print[hugetable,{10}] which would show the first > 10 elements of hugetable? One can do it by making a new table but there > should be an immediate way. > > Steve Gray >
From: Helen Read on 15 Jul 2010 03:11 On 7/14/2010 5:35 AM, S. B. Gray wrote: > Is there anything like Print[hugetable,{10}] which would show the first > 10 elements of hugetable? One can do it by making a new table but there > should be an immediate way. > > Steve Gray > Take[hugetable, 10] -- Helen Read University of Vermont
From: David Bailey on 15 Jul 2010 03:09 On 14/07/10 10:35, S. B. Gray wrote: > Is there anything like Print[hugetable,{10}] which would show the first > 10 elements of hugetable? One can do it by making a new table but there > should be an immediate way. > > Steve Gray > Look up the documentation for Part (which is often abbreviated using the [[.....]] notation). Get to grips with what Part can do, and you will answer the above question and 100 others! David Bailey http://www.dbaileyconsultancy.co.uk
|
Pages: 1 Prev: Using GatherBy, Select, and Sort to process data. Next: Accessing static members with J/Link |