Re: [R] plots

2004-12-28 Thread Tim F Liao
You can copy (right click then choose metafile) and paste into Word easily, though sometimes you may have problem sizing the graph, depending on how it's produced. However, single framed graphs work quite straightforwardly. Tim Liao Original message Date: Mon, 27 Dec 2004 17:00:19

[R] editing a package directly from R

2004-12-28 Thread Fredrik Lundgren
Dear R, I have made a package 'myfuncs' of some home made functions and installed it without problems. It contains no C or fortran code and no dynamic link library. Is there a way to edit this package directly from R (or Xemacs with ESS) or do I always have to edit the source and then

[R] R: repeat loops

2004-12-28 Thread Michael Gray
To whoever this may concern I am trying to write a repeat loop and can't make out from the documentation on the website how exactly to construct the repeat, break structure of the loop. Below is the function sim2.dat that I am trying to create, in which firstly I create n random uniform(0,1)

Re: [R] editing a package directly from R

2004-12-28 Thread Uwe Ligges
Fredrik Lundgren wrote: Dear R, I have made a package 'myfuncs' of some home made functions and installed it without problems. It contains no C or fortran code and no dynamic link library. Is there a way to edit this package directly from R (or Xemacs with ESS) or do I always have to edit the

Re: [R] editing a package directly from R

2004-12-28 Thread Martin Maechler
UweL == Uwe Ligges [EMAIL PROTECTED] on Tue, 28 Dec 2004 13:12:49 +0100 writes: UweL Fredrik Lundgren wrote: Dear R, I have made a package 'myfuncs' of some home made functions and installed it without problems. It contains no C or fortran code and no dynamic

Re: [R] R: repeat loops

2004-12-28 Thread Ale iberna
The mistakes in your function are: 1. the functions repeat and break do not have any arguments 2. the break function should be used insed the repear loop (or if statment with break function should be inside the repeat loop) Correcting for these mistakes I corrected your function. It is at the

[R] Developing R classes

2004-12-28 Thread Gilvan Justino
Hi, I´m trying to write some R classes but I din´t find documentation enought to develop them. I read there is 2 ways to write classes, using S3 ou S4 models. And it seems that S4 is the best model, so I thing I should use this one. I´m new user of R and I´m searched on the net some

RE: [R] Developing R classes

2004-12-28 Thread Liaw, Andy
Fritz's lecture at useR! 2004 may also be a good starting point: http://www.ci.tuwien.ac.at/Conferences/useR-2004/Keynotes/Leisch.pdf Andy From: Gilvan Justino Hi, I´m trying to write some R classes but I din´t find documentation enought to develop them. I read there is 2 ways to

RE: [R] Developing R classes

2004-12-28 Thread Gabor Grothendieck
Chambers book, Programming with Data, has a lot about S4. Note that S4 has more features but S3 is simpler and has higher performance so its not all one way. Also, they are related so if you learn the simpler S3 first it will make it easier to learn S4 later. I suggest you download and

[R] lost association for .RData files

2004-12-28 Thread Richard Valliant
Somehow I have lost the correct file association for .RData files. They are now associated with a text file editor. When I right click on any .RData file and try to change the association, R is not listed as a choice of program. I browse to c:\Program Files\R\rw2001\bin\Rgui.exe and select that

[R] Norton AntiVirus detected and quarantined a virus in a message you sent.

2004-12-28 Thread 2knortonex
Recipient of the infected attachment: EX2K, First Storage Group\Mailbox Store (EX2K), Elizabeth Pascucci/Inbox Subject of the message: Re: Hello One or more attachments were quarantined. Attachment document_all02c.exe was Quarantined for the following reasons: Virus UNAUTHORIZED FILE was

Re: [R] Developing R classes

2004-12-28 Thread Thomas Lumley
On Tue, 28 Dec 2004, Gilvan Justino wrote: Hi, I´m trying to write some R classes but I din´t find documentation enought to develop them. I read there is 2 ways to write classes, using S3 ou S4 models. And it seems that S4 is the best model, so I thing I should use this one. There's a small

RE: [R] lost association for .RData files

2004-12-28 Thread Gabor Grothendieck
You can change file associations by going into Windows Explorer (hold down Windows key and press E) and choosing Tools | Options. Take the File Types tab. Now, select RDATA from the long list and click on Advanced and Edit and enter the string: C:\Program Files\R\rw2001\bin\RGui.exe %1 in

[R] Varying x-axes ticks

2004-12-28 Thread Anthony Gichangi
Dear R Users, I have the following situations to plot. x-values (times) : range from 0 to 104 (in weeks) y-values (hazards) : range from 0 to 0.5 Now I want to make a plot of time versus hazards such that in the time axis (i.e x-axis) the values 0-24 occupies half of the

[R] glm vs multinom

2004-12-28 Thread Rajdeep Das
Dear Colleagues, I am doing two class classification using logistic regression. I realized that I can either use glm function or multinom function. I know multinom is used for multiclass classification. But if I was it for binary classification, I was wondering if there is an difference in the

[R] Configuration of memory usage

2004-12-28 Thread Tae-Hoon Chung
Hi, all; I know there has been a lot of discussions on memory usage in R. However, I have some odd situation here. Basically, I have a rare opportunity to run R in a system with 64GB memory without any limit on memory usage for any person or process. However, I encountered the memory problem

Re: [R] Developing R classes

2004-12-28 Thread Robert Gentleman
And some notes on the Bioconductor developer page. On Dec 28, 2004, at 9:38 AM, Thomas Lumley wrote: On Tue, 28 Dec 2004, Gilvan Justino wrote: Hi, I´m trying to write some R classes but I din´t find documentation enought to develop them. I read there is 2 ways to write classes, using S3 ou S4

[R] (no subject)

2004-12-28 Thread Anne Shelton
Anne Shelton ITS Research IT Group University at Albany 1400 Washington Ave. - MSC-100 Albany, NY 1 Office: 437-4525 Cell: 788-8634 __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting

Re: [R] Configuration of memory usage

2004-12-28 Thread Peter Dalgaard
Tae-Hoon Chung [EMAIL PROTECTED] writes: Hi, all; I know there has been a lot of discussions on memory usage in R. However, I have some odd situation here. Basically, I have a rare opportunity to run R in a system with 64GB memory without any limit on memory usage for any person or

Re: [R] Varying x-axes ticks

2004-12-28 Thread Spencer Graves
Please consider the following: plot(0:1, axes=F) axis(1) If you read the help page for axis and work the examples there, you may be able to figure it out. Hint: Develop a function, say, fn, to shrink 25-104 to 25-50 leaving x 25 unchanged. Then the following should work for you:

Re: [R] lost association for .RData files

2004-12-28 Thread Prof Brian Ripley
It is an optional part of the install: did you check the option? If so, it still works in R 2.0.1. On Tue, 28 Dec 2004, Richard Valliant wrote: Somehow I have lost the correct file association for .RData files. They are now associated with a text file editor. When I right click on any .RData file

Re: [R] glm vs multinom

2004-12-28 Thread Prof Brian Ripley
On Tue, 28 Dec 2004, Rajdeep Das wrote: I am doing two class classification using logistic regression. I realized that I can either use glm function or multinom function. I know multinom is used for multiclass classification. But if I was it for binary classification, I was wondering if there

Re: [R] Configuration of memory usage

2004-12-28 Thread Prof Brian Ripley
Your lack of knowledge extends to the R posting guide: please consult it before posting. 1) Do not post to two lists! I've removed the BioC list. 2) Do tell us your system details. Looks like you have a 32-bit version of R (from the size of the Ncells), and you need a 64-bit version to make

[R] RPHP

2004-12-28 Thread ebashi
Dear friends; Does anyone have any idea how to connect PHP R and using Mysql as DB. Sincerely, Sean __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide!

[R] error installing 2.0.1 '.install_package_description'

2004-12-28 Thread Cary Miller
Dear R, I am attempting to install 2.0.1 on a Debian system and getting an error that appeared for people installing 2.0.0. Warning message: package seems to be using lazy loading already in: makeLazyLoading(tools) Error in get(x, envir, mode, inherits) : variable .install_package_description

[R] read.table from a list of filenames

2004-12-28 Thread thomas hills
I am wondering if it is possible to read.table repeatedly from a list of file names into a new list of table names. For example: filenames - list.files() then with a function like rf - function(i) { word??(filename[i]) - read.table(filenames[i]) } I can't seem to find a function like word??

RE: [R] read.table from a list of filenames

2004-12-28 Thread Liaw, Andy
The solution is in section 7.21 of the R FAQ. BTW, `rf' is a built-in R function for generating random numbers from an F distribution, so better use some other name. Andy From: thomas hills I am wondering if it is possible to read.table repeatedly from a list of file names into a new list

Re: [R] read.table from a list of filenames

2004-12-28 Thread Thomas Lumley
On Tue, 28 Dec 2004, thomas hills wrote: I am wondering if it is possible to read.table repeatedly from a list of file names into a new list of table names. For example: filenames - list.files() then with a function like rf - function(i) { word??(filename[i]) - read.table(filenames[i]) }

Re: [R] read.table from a list of filenames

2004-12-28 Thread Peter Dalgaard
thomas hills [EMAIL PROTECTED] writes: I am wondering if it is possible to read.table repeatedly from a list of file names into a new list of table names. For example: filenames - list.files() then with a function like rf - function(i) { word??(filename[i]) -

Re: [R] error installing 2.0.1 '.install_package_description'

2004-12-28 Thread Dirk Eddelbuettel
On Tue, Dec 28, 2004 at 02:37:03PM -0700, Cary Miller wrote: Dear R, I am attempting to install 2.0.1 on a Debian system and getting an error that appeared for people installing 2.0.0. Warning message: package seems to be using lazy loading already in: makeLazyLoading(tools) Error in

[R] gls model and matrix operations

2004-12-28 Thread Doran, Harold
Dear List: I am estimating a gls model and am having to make some rather unconventional modifications to handle a particular problem I have identified. My aim is to fit a GLS with an AR1 structure, obtain the variance-covariance matrix (V), modify it as needed given my research problem, and

[R] .install_package_description error

2004-12-28 Thread Cary Miller
Hi R, Apologies for the earlier non-informative error message. I am installing R 2.0.1 from source on a Linux debian system. Configure works fine. Then I run make and get an error that was reported by several people when installing R 2.0.0. Here is the error message Warning message:

Re: [R] .install_package_description error

2004-12-28 Thread Dirk Eddelbuettel
On Tue, Dec 28, 2004 at 05:54:02PM -0700, Cary Miller wrote: Hi R, Apologies for the earlier non-informative error message. I am installing R 2.0.1 from source on a Linux debian system. Configure works You could use the fallback strategy of employing our pre-built packages: $

Re: [R] Developing R classes

2004-12-28 Thread Frank E Harrell Jr
Gabor Grothendieck wrote: Chambers book, Programming with Data, has a lot about S4. Note that S4 has more features but S3 is simpler and has higher performance so its not all one way. Also, they are related so if you learn the simpler S3 first it will make it easier to learn S4 later. I

[R] using get() in assign()

2004-12-28 Thread thomas hills
I'm trying to rename the columns in a list of data.frames using the following... for(i in 1:length(filenames)) { assign(names(get(filenames[i])), c(name, infood, time) ) } R returns no errors, but the names are unchanged in the data.frames. The original names were things like

Re: [R] using get() in assign()

2004-12-28 Thread Spencer Graves
Consider the following: changeNames - function(dfName, + newNames=c(A1, B1), pos.=1){ + DF. - get(dfName) + names(DF.) - newNames + assign(dfName, DF., pos=pos.) + done + } DF - data.frame(a=1, b=2) changeNames(DF) [1] done DF A1 B1 1 1 2 There's probably a