Group command

​Dear LAMMPS users ,

​How can I add a collection of atoms with special amount of z coordinate to a group ?

Regards,
Saeed.

Define a region using block (http://lammps.sandia.gov/doc/region.html)

and create a group using the same region ID