Mathematica 9 is now available
Services & Resources / Wolfram Forums
-----
 /
MathGroup Archive
2000
*January
*February
*March
*April
*May
*June
*July
*August
*September
*October
*November
*December
*Archive Index
*Ask about this page
*Print this page
*Give us feedback
*Sign up for the Wolfram Insider

MathGroup Archive 2000

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

Search the Archive

RE: breaking up lists into intervals

  • To: mathgroup at smc.vnet.net
  • Subject: [mg23104] RE: [mg23074] breaking up lists into intervals
  • From: "Simons, F.H." <F.H.Simons at tue.nl>
  • Date: Wed, 19 Apr 2000 02:30:40 -0400 (EDT)
  • Sender: owner-wri-mathgroup at wolfram.com

Matt,

Using Sort and Split your problem can be solved even in one line: 

Split[ Sort[dataset], Floor[#1[[1]]/5] == Floor[#2[[1]]/5] & ]

Regards,

Fred Simons
Eindhoven University of Technology


  • Prev by Date: Plotting bounded domains
  • Next by Date: Piecewise functions
  • Previous by thread: Re: breaking up lists into intervals
  • Next by thread: Re: breaking up lists into intervals