Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

6
  • 1
    $\begingroup$ megadata[[All, {1, 4}]] $\endgroup$ Commented Jul 15, 2014 at 22:59
  • $\begingroup$ This is closely related to Manipulating a sublist based on position although there are even closer posts, you should find them. $\endgroup$ Commented Jul 15, 2014 at 23:00
  • $\begingroup$ If you want to remove points i order to test a fit then I'd suggest using Cases with some sort of condition applied to a pattern. But we'd need an example of your real data. $\endgroup$ Commented Jul 15, 2014 at 23:03
  • $\begingroup$ @artes Your +1 and accepted answer in the cited link is somehow but not "closely" related :) $\endgroup$ Commented Jul 15, 2014 at 23:21
  • $\begingroup$ @eldo Thanks for an upvote, however a remark is needed, there is some kind of relativity in the concept of distance, so I don't insist that it is universal. When it comes to this problem I have to ask why you don't use a simpler and nicer approach: list /. {a_, b_, c_, d_} :> {a, d}? $\endgroup$ Commented Jul 15, 2014 at 23:37