|
[Date Index]
[Thread Index]
[Author Index]
Re: Import specific columns from a tsv-file
- To: mathgroup at smc.vnet.net
- Subject: [mg92236] Re: Import specific columns from a tsv-file
- From: Bill Rowe <readnews at sbcglobal.net>
- Date: Tue, 23 Sep 2008 07:36:34 -0400 (EDT)
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.
Prev by Date:
Re: I installed mathematica 6 in gentoo. I can not open gui of
Next by Date:
Re: Resize dynamic graphics - How?
Previous by thread:
Re: Import specific columns from a tsv-file
Next by thread:
Re: Import specific columns from a tsv-file
|