Sam,
The relevant part of the output is in test[["p.value"]]
which is a matrix. Use
write.table(test[["p.value"]], file="output.csv", sep=",")
and perhaps use the arguments row.names=FALSE and col.names=FALSE.
-Peter Ehlers
Sam Player wrote:
# I'm doing a pairwise.t.test on a large dataset
# I'm doing a pairwise.t.test on a large dataset and need the output in a
data frame so I can work further with it, e.g. so I can export it to a
spreadsheet. Is there any way to coerce the results to an exportable format?
# For example, if I do:
test <- pairwise.t.test(numbers, factors, p.adj="bo
2 matches
Mail list logo