[R] morley.dat
Peter Dalgaard BSA
p.dalgaard at biostat.ku.dk
Wed Apr 26 01:15:04 CEST 2000
Ben Bolker <ben at zoo.ufl.edu> writes:
> I strongly suspect it's the same data as are included in the "michelson"
> data set in the MASS library.
>
> Make sure the MASS library is installed, then:
>
> library(MASS)
> data(michelson)
> attach(michelson)
>
> should get you to where you would have been if you'd read in the
> "morley.data" file and converted Run and Expt to factors (they're factors
> already in the built-in data set).
Morley is in the development version (which is to become 1.1.0 at some
point). It does have the same data as michelson, but not in the same
order and Run and Expt are not factors:
> str(morley)
`data.frame': 100 obs. of 3 variables:
$ Expt : num 1 1 1 1 1 1 1 1 1 1 ...
$ Run : num 1 2 3 4 5 6 7 8 9 10 ...
$ Speed: num 850 740 900 1070 930 850 950 980 980 880 ...
> str(michelson)
`data.frame': 100 obs. of 3 variables:
$ Speed: num 850 740 900 1070 930 850 950 980 980 880 ...
$ Run : Factor w/ 20 levels "1","2","3","4",..: 1 2 3 4 5 6 7 8 9 10 ...
$ Expt : Factor w/ 5 levels "1","2","3","4",..: 1 1 1 1 1 1 1 1 1 1 ...
--
O__ ---- Peter Dalgaard Blegdamsvej 3
c/ /'_ --- Dept. of Biostatistics 2200 Cph. N
(*) \(*) -- University of Copenhagen Denmark Ph: (+45) 35327918
~~~~~~~~~~ - (p.dalgaard at biostat.ku.dk) FAX: (+45) 35327907
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !) To: r-help-request at stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
More information about the R-help
mailing list