How to remove a column with [,x] or any other way?

10 views
Skip to first unread message

tyl...@gmail.com

unread,
Jan 14, 2019, 2:24:18 PM1/14/19
to compareGroups Forum
I was hoping to use compareGroups to put two tables side-by-side and remove the first column of the second table.

To sort of see what I mean, visit the package documentation here:
https://cran.r-project.org/web/packages/compareGroups/vignettes/compareGroups_vignette.html

And ctrl-f this:
rbind(`Non-modifiable` = restab1, Modifiable = restab2)[c(1,

To jump to what I mean.

In that example, they show how to rearrange the rows. I was hoping to do something like

tableToPrint[,-1] to get rid of a column, but when I try that, I get this error:
Error in X[[2]] : object of type 'symbol' is not subsettable
or
Error in `[.createTable`(cgPostProcTblM, , -1) :
argument "i" is missing, with no default

Does anyone know of a way to do this? thanks!

Reply all
Reply to author
Forward
0 new messages