powered by
Useful for when the data are scarce and chisq.test returns a warning, or when a more specific analysis of the data is required.
chisq.test
binTable(x, row, col)
[data.frame/matrix/table] Table to be binned.
[integer/vector] The rows to not be binned.
[integer/vector] The columns to not be binned.
[table] Table with some of its data binned.
# NOT RUN { mtx <- matrix (1:16, nrow=4, dimnames=list(paste0("r",1:4),paste0("c",1:4))) binTable (mtx, 1, 1) binTable (mtx, 1, c(1,3)) # }
Run the code above in your browser using DataLab