Skip to content
Back to formatted view

Raw Message

Message-ID: <20040221100700.32797.qmail@web25208.mail.ukl.yahoo.com>
Date: 2004-02-21T10:07:00Z
From: Fulvio Copex
Subject: saving variables created by functions in the workspace

Hello ,

just a simple question from  a beginner:

I write the function:
plotsinx <- function()
{
x<-seq(0,2*pi,0.01)
sinx<-sin(x)
plot(sinx)
}
I recall it:
plotsinx()
and the plot works properly.
but then in the workspace if I want to look at the
values of sinx the following error is displayed:
Error: Object "sinx" not found.
How to save the variables created by the function on
the workspace?
Thank you very much, it seems to be very trivial...
Copex.



______________________________________________________________________

http://it.yahoo.com/mail_it/foot/?http://it.mail.yahoo.com/