Data manipulation
- To: mathgroup at smc.vnet.net
- Subject: [mg37674] Data manipulation
- From: adam.smith at hillsdale.edu (Adam Smith)
- Date: Fri, 8 Nov 2002 02:15:03 -0500 (EST)
- Sender: owner-wri-mathgroup at wolfram.com
I know that this has been covered before, but I could not find it. I have a list of data and I want to select a subset based on a condition. A simple example: data = {{0.39501, 10}, {1.65689, 20}, {2.40239, 30}, {3.27252, 40}, {4.41738, 50}} I want to select only the pairs for which the first element of each pair is greater than or equal to 2.0 and less than 4.0 In this case the final result would be {{2.40239, 30}, {3.27252, 40}} In reality the list is several hundred pairs. Thanks Adam
- Follow-Ups:
- Re: Data manipulation
- From: Tomas Garza <tgarza01@prodigy.net.mx>
- Re: Data manipulation