Hello! I was reading R-intro and I have some suggestions: R-intro.html#A-sample-session rm(fm, fm1, lrf, x, dummy) suggestion rm(fm, fm1, lrf, x, y, w, dummy) The next section will look at data from the classical experiment of Michaelson and Morley to measure the speed of light. file.show("morley.tab") mm <- read.table("morley.tab") suggestion mm <- data(morley) rm(fm, fm0) suggestion rm(fm, fm0, mm) objects(); rm(x, y, f, fa) suggestion objects(); rm(x, y, f, fa, oldpar) It might also be usefull to use # for comments, since it is easier to copy&paste to R terminal from manual. -- Lep pozdrav / With regards, Gregor GORJANC --------------------------------------------------------------- University of Ljubljana Biotechnical Faculty URI: http://www.bfro.uni-lj.si Zootechnical Department email: gregor.gorjanc <at> bfro.uni-lj.si Groblje 3 tel: +386 (0)1 72 17 861 SI-1230 Domzale fax: +386 (0)1 72 17 888 Slovenia
Gorjanc Gregor wrote:>Hello! > >I was reading R-intro and I have some suggestions: > >R-intro.html#A-sample-session > >rm(fm, fm1, lrf, x, dummy) >suggestion >rm(fm, fm1, lrf, x, y, w, dummy) > >The next section will look at data from the classical experiment of Michaelson and Morley to measure the speed of light. > >file.show("morley.tab") >mm <- read.table("morley.tab") >suggestion >mm <- data(morley) > >No. Although this looks easier, the whole point is to show people how to use read.table! Kjetil>rm(fm, fm0) >suggestion >rm(fm, fm0, mm) > >objects(); rm(x, y, f, fa) >suggestion >objects(); rm(x, y, f, fa, oldpar) > >It might also be usefull to use # for comments, since it is easier to >copy&paste to R terminal from manual. > >-- >Lep pozdrav / With regards, > Gregor GORJANC > >--------------------------------------------------------------- >University of Ljubljana >Biotechnical Faculty URI: http://www.bfro.uni-lj.si >Zootechnical Department email: gregor.gorjanc <at> bfro.uni-lj.si >Groblje 3 tel: +386 (0)1 72 17 861 >SI-1230 Domzale fax: +386 (0)1 72 17 888 >Slovenia > >______________________________________________ >R-devel@stat.math.ethz.ch mailing list >https://stat.ethz.ch/mailman/listinfo/r-devel > > > > >-- Kjetil Halvorsen. Peace is the most effective weapon of mass construction. -- Mahdi Elmandjra -- No virus found in this outgoing message. Checked by AVG Anti-Virus.
The problem is that there is no file morley.tab. I belive that for first impression or example session, things should work.>file.show("morley.tab") >mm <- read.table("morley.tab")-----Original Message----- From: Kjetil Brinchmann Halvorsen [mailto:kjetil@acelerate.com] Sent: Fri 2004-12-31 22:01 To: Gorjanc Gregor Cc: r-devel@stat.math.ethz.ch Subject: Re: [Rd] R-intro Gorjanc Gregor wrote:>Hello! > >I was reading R-intro and I have some suggestions: > >R-intro.html#A-sample-session > >rm(fm, fm1, lrf, x, dummy) >suggestion >rm(fm, fm1, lrf, x, y, w, dummy) > >The next section will look at data from the classical experiment of Michaelson and Morley to measure the speed of light. > >file.show("morley.tab") >mm <- read.table("morley.tab") >suggestion >mm <- data(morley) > >No. Although this looks easier, the whole point is to show people how to use read.table! Kjetil>rm(fm, fm0) >suggestion >rm(fm, fm0, mm) > >objects(); rm(x, y, f, fa) >suggestion >objects(); rm(x, y, f, fa, oldpar) > >It might also be usefull to use # for comments, since it is easier to >copy&paste to R terminal from manual. > >-- >Lep pozdrav / With regards, > Gregor GORJANC > >--------------------------------------------------------------- >University of Ljubljana >Biotechnical Faculty URI: http://www.bfro.uni-lj.si >Zootechnical Department email: gregor.gorjanc <at> bfro.uni-lj.si >Groblje 3 tel: +386 (0)1 72 17 861 >SI-1230 Domzale fax: +386 (0)1 72 17 888 >Slovenia > >______________________________________________ >R-devel@stat.math.ethz.ch mailing list >https://stat.ethz.ch/mailman/listinfo/r-devel > > > > >-- Kjetil Halvorsen. Peace is the most effective weapon of mass construction. -- Mahdi Elmandjra -- No virus found in this outgoing message. Checked by AVG Anti-Virus.
Gorjanc Gregor wrote:> The problem is that there is no file morley.tab. I belive that for first impression or example session, things should work.Have you read from the beginning in Appendix A? It says: "Login, start your windowing system. You should also have the file ?morley.tab? in your working directory. If not, seek the local expert (or get it yourself from the ?datasets/data? subdirectory of the default R library tree). If you have, proceed." The point is that we cannot get the file anymore from "datasets/data", because since the days of R-2.0.0 we have the data in package "datasets" lazy loaded and the file "morley.tab" is not available in binary installations. Hence it is a bug. Possible solution: We could copy the file to something like .../src/library/datasets/inst/intro/morley.tab It would also make sense to simplify the Appendix A stuff in R-intro, because this is (well, has been) a more or less frequently asked question (I wonder why nobody has asked during the last 3 months ....): filename <- file.path(.find.package("datasets"), "intro", "morley.tab")) filename file.show(filename) mm <- read.table(filename) Uwe Ligges> >>file.show("morley.tab") >>mm <- read.table("morley.tab") > > > -----Original Message----- > From: Kjetil Brinchmann Halvorsen [mailto:kjetil@acelerate.com] > Sent: Fri 2004-12-31 22:01 > To: Gorjanc Gregor > Cc: r-devel@stat.math.ethz.ch > Subject: Re: [Rd] R-intro > > Gorjanc Gregor wrote: > > >>Hello! >> >>I was reading R-intro and I have some suggestions: >> >>R-intro.html#A-sample-session >> >>rm(fm, fm1, lrf, x, dummy) >>suggestion >>rm(fm, fm1, lrf, x, y, w, dummy) >> >>The next section will look at data from the classical experiment of Michaelson and Morley to measure the speed of light. >> >>file.show("morley.tab") >>mm <- read.table("morley.tab") >>suggestion >>mm <- data(morley) >> >> > > No. Although this looks easier, the whole point is to show people how to > use read.table! > > Kjetil > > >>rm(fm, fm0) >>suggestion >>rm(fm, fm0, mm) >> >>objects(); rm(x, y, f, fa) >>suggestion >>objects(); rm(x, y, f, fa, oldpar) >> >>It might also be usefull to use # for comments, since it is easier to >>copy&paste to R terminal from manual. >> >>-- >>Lep pozdrav / With regards, >> Gregor GORJANC >> >>--------------------------------------------------------------- >>University of Ljubljana >>Biotechnical Faculty URI: http://www.bfro.uni-lj.si >>Zootechnical Department email: gregor.gorjanc <at> bfro.uni-lj.si >>Groblje 3 tel: +386 (0)1 72 17 861 >>SI-1230 Domzale fax: +386 (0)1 72 17 888 >>Slovenia >> >>______________________________________________ >>R-devel@stat.math.ethz.ch mailing list >>https://stat.ethz.ch/mailman/listinfo/r-devel >> >> >> >> >> > > >
Nice. So, I was successfull afterall! Thanks again to all R developers for such a usefull program. Happy new year with small number of bugs and many new functions ;) -- Lep pozdrav / With regards, Gregor GORJANC --------------------------------------------------------------- University of Ljubljana Biotechnical Faculty URI: http://www.bfro.uni-lj.si Zootechnical Department email: gregor.gorjanc <at> bfro.uni-lj.si Groblje 3 tel: +386 (0)1 72 17 861 SI-1230 Domzale fax: +386 (0)1 72 17 888 Slovenia --------------------------------------------------------------- -----Original Message----- From: Duncan Murdoch [mailto:murdoch@stats.uwo.ca] Sent: sob 2005-01-01 20:04 To: Uwe Ligges Cc: Gorjanc Gregor; Kjetil Brinchmann Halvorsen; r-devel@stat.math.ethz.ch Subject: Re: [Rd] R-intro On Sat, 01 Jan 2005 17:24:33 +0100, Uwe Ligges <ligges@statistik.uni-dortmund.de> wrote:>Gorjanc Gregor wrote: >> The problem is that there is no file morley.tab. I belive that for first impression or example session, things should work. > >Have you read from the beginning in Appendix A? It says: > >"Login, start your windowing system. You should also have the file >'morley.tab' in your working directory. If not, seek the local expert >(or get it yourself from the 'datasets/data' subdirectory of the default >R library tree). If you have, proceed." > >The point is that we cannot get the file anymore from "datasets/data", >because since the days of R-2.0.0 we have the data in package "datasets" >lazy loaded and the file "morley.tab" is not available in binary >installations. Hence it is a bug. > >Possible solution: >We could copy the file to something like >.../src/library/datasets/inst/intro/morley.tab > >It would also make sense to simplify the Appendix A stuff in R-intro, >because this is (well, has been) a more or less frequently asked >question (I wonder why nobody has asked during the last 3 months ....): > > >filename <- file.path(.find.package("datasets"), "intro", "morley.tab")) >filename >file.show(filename) >mm <- read.table(filename) > >Uwe LiggesGood suggestions. I'll make the changes in R-patched. Duncan Murdoch