Re: [R] Output pairwise.t.test to data.frame

2009-10-27 Thread Peter Ehlers
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

[R] Output pairwise.t.test to data.frame

2009-10-26 Thread Sam Player
# 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