MathGroup Archive 2003

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: List Operation ?

  • To: mathgroup at smc.vnet.net
  • Subject: [mg40227] Re: List Operation ?
  • From: Bill Rowe <listuser at earthlink.net>
  • Date: Wed, 26 Mar 2003 02:44:31 -0500 (EST)
  • Sender: owner-wri-mathgroup at wolfram.com

On 3/25/03 at 2:50 PM, sunilj at physics.uc.edu (Sunil Jayatilleke) wrote:

>I have a list as follows

>list1 =
>{{a1,b1,c1,d1,e1,f1},{a2,b2,c2,d2,e2,f2},{............}.............}

>Now I want to do the following

>list2 ={{a1,b1,d1},{a2,b2,d2}......................}

>How can I do that ?

list2 = Take[#,3]&/@list1

or

<<Statistics`DataManipulation`;
list2 = Column[list1,{1,2,3}]

or

<<LinearAlgebra`MatrixManipulation`;
list2 = TakeColumns[list1, 3]


  • Prev by Date: Re: List Operation ?
  • Next by Date: Re: List Operation ?
  • Previous by thread: Re: List Operation ?
  • Next by thread: Re: List Operation ?