> x=read.table("F:/my/work/chengxu/PValue/pc2jieguo/pc2302.txt")
> z=t(x)
> ks.test(y,z)
Two-sample Kolmogorov-Smirnov test
data: y and z
D = 0.207, p-value < 2.2e-16
alternative hypothesis: two-sided
如上面运行结果,我想将p-value < 2.2e-16自动保存到一个文件中,如何用R程序实现,谢谢!
> z=t(x)
> ks.test(y,z)
Two-sample Kolmogorov-Smirnov test
data: y and z
D = 0.207, p-value < 2.2e-16
alternative hypothesis: two-sided
如上面运行结果,我想将p-value < 2.2e-16自动保存到一个文件中,如何用R程序实现,谢谢!