[R] t.test & formatting question

christopher ciotti chris_ciotti at yahoo.com
Sat Apr 17 01:14:29 CEST 2004


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hello all -


I'm trying to format some data where I only need one of the values 
returned from a test, say a t-test in this instance.  I have the following:

 > R.version.string
[1] "R version 1.9.0, 2004-04-12"
 > x <- rnorm(1001)
 > t.test(x)$statistic
        t
0.5555321
 >

Any easy way (other than straight calculation) to get the t-statistic 
w/o the 't' above it?  TIA

- --
chris ciotti (chris_ciotti at yahoo.com)
PGP ID: 0xE94BB3B7


-----BEGIN PGP SIGNATURE-----
Version: PGP 8.0

iQA/AwUBQIBotlkgIqbpS7O3EQIt7ACdEhhoM3tqqmDae71Rdo/eHg2TvoQAoLSw
8QjwkHENOjjs5mzCWlXSTQXO
=LvW5
-----END PGP SIGNATURE-----




More information about the R-help mailing list