Try str(ks.test(VeriSeti1, VeriSeti2)) # see ?str
then ks.test(VeriSeti1, VeriSeti2)$p.value Med venlig hilsen Frede Aakmann Tøgersen > -----Oprindelig meddelelse----- > Fra: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] På vegne af Emre Unal > Sendt: 3. oktober 2007 11:32 > Til: r-help@r-project.org > Emne: [R] P-value > > How can i print only the P-Value of the kolmogorov smirnov test? > > > > ks.test(VeriSeti1, VeriSeti2) > > Two-sample Kolmogorov-Smirnov test > > data: VeriSeti1 and VeriSeti2 > D = 0.5, p-value = 0.4413 > alternative hypothesis: two-sided > > > This expression gives me the whole test results, i need only > the p-value = 0.4413. > > Thanks for your concern and help > > Emre UNAL > Statistician > > [[alternative HTML version deleted]] > > ______________________________________________ > R-help@r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide > http://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code. > ______________________________________________ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.