Re: [R] lda source code

2003-10-02 Thread Uwe Ligges
Frank Gibbons wrote: Wei Geng, I asked the same question about six weeks ago, so let me try to answer it. The source for the entire package 'MASS' is in a single file, I believe (at least this is true on my Linux setup). The thread gets boring, but let me correct this belief: NO! There is

[R] lda source code

2003-10-01 Thread Wei Geng
I am new to R. Trying to find out how lda() {in MASS R1.8.0 Windows} was implemented in R. Does anyone know where to find out lda source code ? Thanks. Wei __ [EMAIL PROTECTED] mailing list https://www.stat.math.ethz.ch/mailman/listinfo/r-help

Re: [R] lda source code

2003-10-01 Thread Jason Turner
Wei Geng wrote: I am new to R. Trying to find out how lda() {in MASS R1.8.0 Windows} was implemented in R. Does anyone know where to find out lda source code ? Thanks. Here: http://cran.r-project.org Hint: MASS is a *package*. You want to view its *source*. Same with most other R packages.

Re: [R] lda source code

2003-10-01 Thread Spencer Graves
Consider the following: library(MASS) lda function (x, ...) UseMethod(lda) environment: namespace:MASS methods(lda) [1] lda.data.frame lda.defaultlda.formulalda.matrix Now type lda.data.frame or lda.default, etc., at a command prompt to see the corresponding R code. Is this

RE: [R] lda source code

2003-10-01 Thread Wei Geng
Hi Jason, Spencer, Thanks for the prompt response. The strange thing about MASS is that it's not in Package Sources as most of other R packages are. It seems to come with the binary R installation. I checked out the Rxx/library/MASS on my laptop, there are source code (script) for Venables

Re: [R] lda source code

2003-10-01 Thread Frank Gibbons
Wei Geng, I asked the same question about six weeks ago, so let me try to answer it. The source for the entire package 'MASS' is in a single file, I believe (at least this is true on my Linux setup). The exact location of that file you'll have to determine by searching the directory/folder

Re: [R] lda source code

2003-10-01 Thread Spencer Graves
With R 1.7.1 on Windows 2000, I got fine R source code for each of the 4 options. What version of R and what exactly did you do? I can't reproduce your error. hope this helps. spencer graves Wei Geng wrote: Hi Jason, Spencer, Thanks for the prompt response. The strange thing about MASS

Re: [R] lda source code

2003-10-01 Thread Gavin Simpson
Wei Geng wrote: Does anyone know where to find out lda source code ? Try typing lda.default at the prompt. That should get you started. Also see: methods(lda) as lda.default isn't the only bit of code used in lda() Alternatively, grab the source from CRAN and read it at your leisure. HTH Gav

Re: [R] lda source code

2003-10-01 Thread Gavin Simpson
Wei Geng wrote: Hi Jason, Spencer, Thanks for the prompt response. The strange thing about MASS is that it's not in Package Sources as most of other R packages are. It seems to come with the binary R installation. I checked out the Rxx/library/MASS on my laptop, there are source code (script)

Re: [R] lda source code

2003-10-01 Thread Jason Turner
Wei Geng wrote: Hi Jason, Spencer, Thanks for the prompt response. The strange thing about MASS is that it's not in Package Sources as most of other R packages are. It seems to come with the binary R installation. I checked out the Rxx/library/MASS on my laptop, there are source code (script) for

Re: [R] lda source code

2003-10-01 Thread Roger D. Peng
You are using a *beta* version of R 1.8.0 and in that version lda.default is not visible to the user (hidden in a namespace). You can access it though by using the ::: (triple colon) operator, as in library(MASS) MASS:::lda.default Actually, the first library() call is not necessary. -roger