EntityGroup

EntityGroup[{entity1,entity2,}]

represents a group of entities.

Details

  • EntityGroup allows operations on groups of entities, for example finding the total population of a set of different countries.
  • An entity is generally specified as Entity[type,canonicalname]. A list of currently available entity types is given by EntityValue[].
  • Entity expressions can be created by using the interface.

Examples

open allclose all

Basic Examples  (3)

Give the total population of a group of countries:

Give the total populations for entities of mixed types:

Give the total atomic mass of all chemical elements:

Applications  (2)

Provide the total mass of a combination of chemicals specified using different physical quantities:

Add currency denominations:

Add currency denominations from different monetary systems:

Properties & Relations  (1)

An EntityGroup of n copies of an entity is equivalent to EntityCopies[entity, n]:

Possible Issues  (1)

Defining a group containing entities of different types does not take into account possible inclusion of one domain in another:

Introduced in 2015
 (10.3)