Services & Resources / Wolfram Forums
MathGroup Archive
*Archive Index
*Ask about this page
*Print this page
*Give us feedback
*Sign up for the Wolfram Insider

MathGroup Archive 2004

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

Search the Archive

Re: selecting columns from a list

  • To: mathgroup at
  • Subject: [mg47857] Re: [mg47844] selecting columns from a list
  • From: Oleksandr Pavlyk <pavlyk at>
  • Date: Thu, 29 Apr 2004 03:05:00 -0400 (EDT)
  • Organization: Penn State University; Department of Physics
  • References: <>
  • Reply-to: pavlyk at
  • Sender: owner-wri-mathgroup at

Hi Edo,

One way of doing it is to apply Drop
for every line.

data = Drop[#, 2]& /@ data;


Edo wrote:

> Hello
> I just started with mathematica, wanted to load a comma separated data 
> file and drop the first two columns. So I did
> data=Import["C:\Data\filename.ext","CSV"]; to get the file into a 
> variable "data", then I am stuck, after doing some reading in the help 
> files about Drop, Partition, Take. ? etc
> could someone tell me what to read and where to find info about indexing 
> different data structures
> thanks

  • Prev by Date: Re: bug in IntegerPart ?
  • Next by Date: Re: selecting columns from a list
  • Previous by thread: selecting columns from a list
  • Next by thread: Re: selecting columns from a list