add group-specific spec

because of recoding, base alternative for each group may be different,
thus dataR need to carry its own spec structure