[Date Index] [Thread Index] [Author Index]
Re: Import specific columns from a tsv-file
On 9/22/08 at 5:27 AM, suladna at yahoo.com (suladna) wrote: >I want to import data from a tsv-file to a Table in Mathematica, >without the first column of the tsv-file. What should I write to do >this? >Alternatively I can import the whole tsv-file and then drop the >first column from my Mathematica-Table.. but I don't know how to do >the "drop column" part. Assuming you are using Mathematica version 6 or later, the most compact way I know to do what you want is: data = Import[filename, "TSV"][[All,2;;]] The [[All,2;;]] part drops the first column.