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