Bug submitted here: https://r-forge.r-project.org/tracker/index.php?func=detail&aid=1689&group_id=240&atid=975
On 2 December 2011 08:07, Matthew Dowle <[email protected]> wrote: > > I would have sworn blind we had lots of tests of CJ(), but there are only > two. Ok, please add as bug report. Same issue as Chris. > > Matthew > >> All, >> >> CJ is behaving a little different (throwing an error) than it has >> previously and I'm not sure whether this is a bug or a desired feature. >> >> tmp.content_areas <- factor(c("READING", "MATHEMATICS")) >> tmp.years <- factor(c("2010_2011", "2009_2010", "2008_2009"), >> levels=paste(2006:2010, 2007:2011, sep="_")) >> >> CJ(tmp.content_areas, tmp.years) >> Error in setkey(l) : logical error nrow(dt)!=length(order) >> >> >> However: >> >> CJ(tmp.content_areas, sort(tmp.years)) >> >> V1 V2 >> [1,] READING 2008_2009 >> [2,] READING 2009_2010 >> [3,] READING 2010_2011 >> [4,] MATHEMATICS 2008_2009 >> [5,] MATHEMATICS 2009_2010 >> [6,] MATHEMATICS 2010_2011 >> >> >> Any help greatly appreciated, >> >> Damian >> >> Damian Betebenner >> Center for Assessment >> PO Box 351 >> Dover, NH 03821-0351 >> >> Phone (office): (603) 516-7900 >> Phone (cell): (857) 234-2474 >> Fax: (603) 516-7910 >> >> [email protected]<mailto:[email protected]> >> www.nciea.org<http://www.nciea.org/> >> >> >> >> _______________________________________________ >> datatable-help mailing list >> [email protected] >> https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/datatable-help > > > _______________________________________________ > datatable-help mailing list > [email protected] > https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/datatable-help _______________________________________________ datatable-help mailing list [email protected] https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/datatable-help
