Update aggspec.R

fix aggspec