Services & Resources / Wolfram Forums / MathGroup Archive
-----

MathGroup Archive 2010

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

Search the Archive

Re: Occurrences in Mathematica

  • To: mathgroup at smc.vnet.net
  • Subject: [mg106382] Re: Occurrences in Mathematica
  • From: dh <dh at metrohm.com>
  • Date: Mon, 11 Jan 2010 05:29:49 -0500 (EST)
  • References: <hic33o$59f$1@smc.vnet.net>


Gi George,

you can do this using e.g. Tally and Cases:

list = {a, a, b, a, c, b, a};

Cases[Tally[list], {x_, 1} :> x]

Daniel



George wrote:

> Hi,

> 

> I have a very big list of elements and I need Mathematica to give me

> only those elements which occure only once...

> 

> Could anybody advise me please how to write the code for that?

> 

> Thks much

> George

> 




  • Prev by Date: Rotate
  • Next by Date: Re: Occurrences in Mathematica
  • Previous by thread: Re: Occurrences in Mathematica
  • Next by thread: Re: Occurrences in Mathematica