Hi Greg, I tried this: cp<-read.table(text="Birey Grup Time y 1 1 Cp1 0.7916386 1 1 Cp3 1.7463777 1 1 Cp7 1.2008390 1 1 Cp14 0.6311380 1 1 Cp21 2.1563557 1 1 Cp28 1.2008390", header=TRUE) library(prettyR) xtab(Grup~Time,cp) Crosstabulation of Grup by Time Time Grup Cp1 Cp14 Cp21 Cp28 Cp3 Cp7 1 1 1 1 1 1 1 6 16.67 16.67 16.67 16.67 16.67 16.67 - 100 100 100 100 100 100 100
1 1 1 1 1 1 6 16.67 16.67 16.67 16.67 16.67 16.67 100.00 Maybe doing the same on your entire data set will reveal something. Jim On Thu, Nov 7, 2019 at 8:58 AM greg holly <mak.hho...@gmail.com> wrote: > > I got the following error message after running t2way(y ~ Grup*Time, data > = cp) > Error in x[[grp[i]]] : > attempt to select less than one element in get1index > > a part of the data is given below. Your help is highly appreciated. > > Greg > > > head(cp) > Birey Grup Time y > 1 1 1 Cp1 0.7916386 > 2 1 1 Cp3 1.7463777 > 3 1 1 Cp7 1.2008390 > 4 1 1 Cp14 0.6311380 > 5 1 1 Cp21 2.1563557 > 6 1 1 Cp28 1.2008390 > > [[alternative HTML version deleted]] > > ______________________________________________ > R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide http://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code. ______________________________________________ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.