Is the code below showing a bug in Crosstable()? My expectation was that the values produced by xtabs were rounded instead of truncated:
library(gmodels) abc <- c("a", "a", "b", "b", "c", "c") def <- c("d", "e", "f", "f", "d", "e") wgt <- c(0.8, 0.6, 0.4, 0.5, 1.4, 1.3) xtabs(wgt ~ abc + def) CrossTable(xtabs(wgt ~ abc + def), prop.r = F, prop.c = F, prop.t = F, prop.chisq = F) -- Jakson Aquino Professor of Political Science Federal University of Ceara, Brazil ______________________________________________ R-help@r-project.org mailing list 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.