put into a file called abc.R or whatever,
source("abc.R")
check ?source
On 6/27/07, Jiong Zhang, PhD <jizhang at chori.org>
wrote:> Hi All,
>
> I have a rather naive question. I need to run some simple calculations
> such as read.table, resid, and quantile on a data file. How can I save
> these commands in a text file and ask R to run this text file? Thanks.
>
> Jiong Zhang
> The email message (and any attachments) is for the sole use of the
intended recipient(s) and may contain confidential information. Any
unauthorized review, use, disclosure or distribution is prohibited. If you are
not the intended recipient, please contact the sender by reply email and destroy
all copies of the original message (and any attachments). Thank You.
>
>
>
> [[alternative HTML version deleted]]
>
> ______________________________________________
> R-help at stat.math.ethz.ch mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide
http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
>
--
Weiwei Shi, Ph.D
Research Scientist
GeneGO, Inc.
"Did you always know?"
"No, I did not. But I believed..."
---Matrix III