MathGroup Archive 2005

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

Search the Archive

Re: Help! Delete Casses based on column

  • To: mathgroup at smc.vnet.net
  • Subject: [mg58302] Re: [mg58296] Help! Delete Casses based on column
  • From: Bob Hanlon <hanlonr at cox.net>
  • Date: Sun, 26 Jun 2005 23:13:05 -0400 (EDT)
  • Reply-to: hanlonr at cox.net
  • Sender: owner-wri-mathgroup at wolfram.com

data=Table[Random[],{5},{3}]

col=2; threshold=0.3;

DeleteCases[data, _?(#[[col]]<threshold&)]

or

Cases[data, _?(#[[col]]>=threshold&)]

or

Select[data, #[[col]]>=threshold&]


Bob Hanlon

> 
> From: tornado78 <tornado78 at hotmail.com>
To: mathgroup at smc.vnet.net
> Date: 2005/06/26 Sun AM 01:33:58 EDT
> Subject: [mg58302] [mg58296] Help! Delete Casses based on column
> 
> Any help would be apreciated 
> 
> I need to take a large numeric matrix and remove all the rows that have a 
value less than X in column N
> 
> Since its a large matrix im looking for an efficient algorithm.
> 
> thanks
> 
> 


  • Prev by Date: Re: Mathematica Visualization site - update
  • Next by Date: Re: Spline
  • Previous by thread: Mathematica Visualization site - update
  • Next by thread: Re: Help! Delete Casses based on column