I didn't find any function for that and found easier write one. It is
not the most elegant solution, but in case anyone wants it:
ttable <- function(formula, data, digits=2) {
vars = all.vars(formula)
nvars = length(vars)
nnumvars = nvars - 1
factorname = vars[nvars]
outp = matrix(ncol=6
Hi,
I want to run t.test() for several variables among two groups, and I
would like to skip the tedious process of collecting information to
assemble a table, but I am not sure if the function I want already
exists. Any suggestion would be appreciated.
I have a working example, as required by the
2 matches
Mail list logo