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
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
>
>
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
# 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
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
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
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
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
; "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
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
>
> 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
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
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
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
>
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
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
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
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
"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
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
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
> 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
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
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
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
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,
26 matches
Mail list logo