How to assign values to specific group of atoms

Dear Lammps users

I want to define a vector variable which gives two numbers to two different groups of atoms. There is atom style which can give values to all atoms not to specified group of atoms. I will appreciate if anybody let me know how to do it?