dataframe - writing a ".rtest" output to file, using the R program (ex) via write.table? -
I saved something in a special pairwise manner. Opening the cc file and found in a statistical test ( Mantel.rtest
, package "AD4"). CCV files are named sequentially as "FileX" or "FileBiWei", where x and y are integers.
I want to save the results of this test in a file, but I am running on some issues.
Here is the code (please "Paste":
Library (ad4) x
The following error message Trying to do this: Error in in
** .data.frame.default (x [[i]], alternate = true, stringsfactors = stringsAfactors): ca " Unlist "and" as.vector "have tried to convert" mantleout "into some friendly format." No use. any idea? Thanks, WAW
EDIT: I should keep in mind that the production of this test in the R environment is as follows:
Monte 999 Based on 99 copy copy copy test based observation: 0.5324712 call: mantel.rtest (m1 = dist (matrix (m1, 9, 9)), m2 = dist (matrix (m2, 9, 9)) - Special: 0.01 "
Use str (rtest)
rtest
to see the structure of the object: it is no wonder that It will not fit in the data frame. Try to put it in a list instead. Save (my.list, file = "mylist.RData")
, and load ("mylist. RData ") and then reload it.
.
Comments
Post a Comment