[R] Saving results of Kruskal Walis test

2008-10-16 Thread Himanshu Ardawatia
Hello, I am running Kruskal-Walis test in R. When I try to save results using write.table it gives me the following error : Error in as.data.frame.default(x[[i]], optional = TRUE, stringsAsFactors = stringsAsFactors) : cannot coerce class "htest" into a data.frame The overall code is as follow

Re: [R] Saving results of Kruskal Walis test

2008-10-16 Thread Bernardo Rangel Tura
Em Qui, 2008-10-16 às 22:31 +0200, Himanshu Ardawatia escreveu: > Hello, > > I am running Kruskal-Walis test in R. When I try to save results using > write.table it gives me the following error : > > Error in as.data.frame.default(x[[i]], optional = TRUE, stringsAsFactors = > stringsAsFactors) :

Re: [R] Saving results of Kruskal Walis test

2008-10-16 Thread Jorge Ivan Velez
Dear Himanshu, Try ?sink() : data_file.out <- krukal.test(data_file) sink("~/DATA/results/data_file_out.txt") data_file.out sink() HTH, Jorge On Thu, Oct 16, 2008 at 4:31 PM, Himanshu Ardawatia <[EMAIL PROTECTED]>wrote: > Hello, > > I am running Kruskal-Walis test in R. When I try to save r

Re: [R] Saving results of Kruskal Walis test

2008-10-17 Thread Himanshu Ardawatia
Thank you Phil, Bernardo and Jorge for all your help. All your suggested options work very well ! Regards Himanshu \\ On Fri, Oct 17, 2008 at 5:01 AM, Bernardo Rangel Tura <[EMAIL PROTECTED]>wrote: > Em Qui, 2008-10-16 às 22:31 +0200, Himanshu Ardawatia escreveu: > > Hello, > > > > I am running