MathGroup Archive 2000

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

Search the Archive

RE: breaking up lists into intervals


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