Re: [R] Help with R: functions

2006-01-31 Thread Pryseley Assam
Dear R-users Thanks for all the help/suggestions, they have been most helpful. Best regards Pryseley - [[alternative HTML version deleted]] __ R-help@stat.math.et

Re: [R] Help with R: functions

2006-01-30 Thread Liaw, Andy
This might be a bit closer to what Pryseley wanted: st <- function(dat, x, y) { f <- formula(substitute(y ~ x), env=environment(dat)) plot(f, dat) abline(lm(f, dat)) } Note that the variable names in the plot when tested on `dats' as Pryseley created. Andy From: Jacques VESLOT > >

Re: [R] Help with R: functions

2006-01-30 Thread Jacques VESLOT
st <- function(data, x, y){ attach(data) rcc <- coef(lm(y~x)) plot(x,y) abline(rcc) detach(data)} st(data=dats, x=visual24, y=visual52) Pryseley Assam a écrit : >Hello R-users > > I am new to R and trying to write some functions. I have problems writing > functions tha

Re: [R] Help with R: functions

2006-01-30 Thread Philippe Grosjean
# Here it is (using the formula interface): dats <- data.frame(visual24 = rnorm(30, 3, 5), visual52 = rt(30, 7)) st <- function(formula, data, ...) { # Just use the formula to specify which variables to use rcc <- coef(lm(formula, data)) # Make sure to k

Re: [R] Help with R: functions

2006-01-30 Thread TEMPL Matthias
abline(rcc[1],rcc[2]) detach(data) } st(dats,visual24,visual52) Best, Matthias > -Ursprüngliche Nachricht- > Von: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] Im Auftrag von > Pryseley Assam > Gesendet: Montag, 30. Jänner 2006 14:14 > An: r-help@stat.math.et

[R] Help with R: functions

2006-01-30 Thread Pryseley Assam
Hello R-users I am new to R and trying to write some functions. I have problems writing functions that takes a data set as an arguement and uses variables in the data. I illustrate my problem with a small example below: sample data #-- visual24<-rnorm(30,3,5) v

Re: [R] help with R

2005-12-01 Thread Kjetil Brinchmann Halvorsen
Ed Wang wrote: > Morning, > > I've downloaded the precompiled R 2.1.1 version and am using Windows XP > on my office workstation. As mentioned previously, I've resorted to batch > jobs to avoid the hanging that occurs when I try to plot the 3690 length > vector of data. If it's warranted, I can

Re: [R] help with R

2005-12-01 Thread Ed Wang
Morning, I've downloaded the precompiled R 2.1.1 version and am using Windows XP on my office workstation. As mentioned previously, I've resorted to batch jobs to avoid the hanging that occurs when I try to plot the 3690 length vector of data. If it's warranted, I can do a build from the source

Re: [R] help with R

2005-11-30 Thread Prof Brian Ripley
; "A man is not old until regrets take the place of dreams." > Actor John Barrymore > > > > > > > From: Berton Gunter <[EMAIL PROTECTED]> > To: "'Ed Wang'" <[EMAIL PROTECTED]>, > Subject: RE: [R] help with

[R] help with R

2005-11-30 Thread Ed Wang
A man is not old until regrets take the place of dreams." Actor John Barrymore From: Berton Gunter <[EMAIL PROTECTED]> To: "'Ed Wang'" <[EMAIL PROTECTED]>, Subject: RE: [R] help with R Date: Tue, 29 Nov 2005 11:05:02 -0800 You're

Re: [R] help with R

2005-11-30 Thread Florence Combes
> > I've tried loading the batch script via the command > > >source(C:\\Program Files\\R\\rw2011\\HO_Rscript.txt) > > in interactive mode but I get an error. > > Question 2: can someone point out the syntax flaw in trying > to upload this batch script text file? try > source("C:/Program Files/R/r

Re: [R] help with R

2005-11-29 Thread Berton Gunter
gt; Sent: Tuesday, November 29, 2005 9:51 AM > To: r-help@stat.math.ethz.ch > Subject: [R] help with R > > Hi, > > New to R on Windows and also someone trying to learn how > to use R in batch. My apologies if this posting is a little long > but users may better understan

[R] help with R

2005-11-29 Thread Ed Wang
Hi, New to R on Windows and also someone trying to learn how to use R in batch. My apologies if this posting is a little long but users may better understand the problems I'm having if I explain what I'm doing. Goal: use R to look at seasonality on a daily level, where I have 15 years of daily d

Re: [R] Help with R

2005-05-19 Thread Gabor Grothendieck
On 5/19/05, Ted Harding <[EMAIL PROTECTED]> wrote: > Hi Gabor, > > On 05-May-05 Gabor Grothendieck wrote: > > On 5/5/05, Ted Harding <[EMAIL PROTECTED]> wrote: > >> [...] > >> However, while representing the raw data in such a form is > >> well supported by R, it seems to me that extracting data >

Re: [R] Help with R

2005-05-19 Thread Ted Harding
Hi Gabor, On 05-May-05 Gabor Grothendieck wrote: > On 5/5/05, Ted Harding <[EMAIL PROTECTED]> wrote: >> [...] >> However, while representing the raw data in such a form is >> well supported by R, it seems to me that extracting data >> in a way adapted to different analyses requires users to >> cre

Re: [R] Help with R

2005-05-05 Thread Gabor Grothendieck
On 5/5/05, Ted Harding <[EMAIL PROTECTED]> wrote: > On 05-May-05 Peter Dalgaard wrote: > > [...] > > Both systems are victims of the curse of the rectangular data set to > > some extent. Prototypically, you record the sex of a rat along with > > every single measurement on it, as if the rat could c

Re: [R] Help with R

2005-05-05 Thread Prof Brian Ripley
On Thu, 5 May 2005, Christoph Lehmann wrote: I heard that 'R' does not do a very good job at handling large datasets, is this true? importing huge datasets in a data.frame with e.g. a subsequent step of conversion of some columns into factors may lead into memory troubles (probably due to memor

Re: [R] Help with R

2005-05-05 Thread Christoph Lehmann
I heard that 'R' does not do a very good job at handling large datasets, is this true? importing huge datasets in a data.frame with e.g. a subsequent step of conversion of some columns into factors may lead into memory troubles (probably due to memory overhead when building out factors). But we

Re: [R] Help with R

2005-05-05 Thread Peter Dalgaard
"Angus Repper" <[EMAIL PROTECTED]> writes: > Hello > > > > I am a long-time SAS user, but am new to R. I specifically am looking for > information pertaining to generating graphics for web output. I would like > to create dynamic graphics (in the form of generalized reports) for my web > site

[R] Help with R

2005-05-04 Thread Angus Repper
Hello I am a long-time SAS user, but am new to R. I specifically am looking for information pertaining to generating graphics for web output. I would like to create dynamic graphics (in the form of generalized reports) for my web site that is written with php and mysql. Is 'R' capable of doing

Re: [R] Help with R and Bioconductor

2005-01-27 Thread Ashok Veeraraghavan
Hi Jeff, First of all thanks for the response. But i still am encountering some problems with installing bioconductor. I did remove the directory 00Lock. I ran getBioC("affy") During the installation i get a warning several times. chmod:/Library/Frameworks/R.framework/Version/2.0.1/Resources/lib

Re: [R] Help with R and Bioconductor

2005-01-27 Thread Jeff Gentry
> seemed successful. Then while attempting to getBioC() I had to force > quit the R application since I had to attend to something else > urgently. When i returned and tried to getBioC, I am getting errors Why not just let it run? > indicating that there is a lock on some files. So i would like t

[R] Help with R and Bioconductor

2005-01-27 Thread Ashok Veeraraghavan
Hi, I am new to using R and Bioconductor. My first attempt at installing R seemed successful. Then while attempting to getBioC() I had to force quit the R application since I had to attend to something else urgently. When i returned and tried to getBioC, I am getting errors indicating that there i

Re: [R] Help with R Installation on Debian 2.2.19 (old stable/potato)

2003-07-20 Thread Dirk Eddelbuettel
On Thu, Jul 10, 2003 at 01:50:59PM -0400, Jameson C. Burt wrote: > I have avoided crossing Debian versions > (eg, installing woody packages over a Debian potato distribution) Countless users have done that with success. It all depends on your comfort level with your Debian system as you need som

Re: [R] Help with R Installation on Debian 2.2.19 (old stable/potato)

2003-07-10 Thread Jameson C. Burt
I have avoided crossing Debian versions (eg, installing woody packages over a Debian potato distribution) unless I do a full upgrade to, eg, woody. However, R was and is available for the Debian potato version, but it is version 0.90. If you would be satisfied with that version, and I got good u

[R] Help with R Installation on Debian 2.2.19 (old stable/potato)

2003-07-10 Thread Shashank Bhide
Hi all, I hope this is the correct list to post such a question. I was trying to install the R-project on Debian and encountered significant problems with the same. The main problem is the installation of the libc6 package. I need this package in order to install the R-core package. However,