lab1<- c(1,2,1,2,1,2,1,2,1)
lab2<- c(6,3,6,4,6,5,6,2,6) # exchangeable lables are allowed, 1 have the same role as 6
is.aggvec(lab1,lab2) #should be TRUE
is.aggvec(lab2,lab1) #should be FALSE
Run the code above in your browser using DataLab