MathGroup Archive 2005

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

Search the Archive

Re: Help! Delete Casses based on column


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