Displaying 1 result from an estimated 1 matches for "krukal".
Did you mean:
kruskal
2008 Oct 16
2
Saving results of Kruskal Walis test
....data.frame.default(x[[i]], optional = TRUE, stringsAsFactors =
stringsAsFactors) :
cannot coerce class "htest" into a data.frame
The overall code is as follows :
>data_file = read.table("~/DATA.dir/data_file.txt", header=T)
>attach(data_file)
>data_file.out <- krukal.test(data_file)
>write.table(data_file.out, "~/DATA/results/data_file_out.txt")
Error in as.data.frame.default(x[[i]], optional = TRUE, stringsAsFactors =
stringsAsFactors) :
cannot coerce class "htest" into a data.frame
Results do come in data_file.out after analysis as...