[R] How to execute R code
Roland Rau
roland.rproject at gmail.com
Fri Jan 25 20:47:19 CET 2008
Hi,
one possibility is to start R in a terminal window by entering
R
then R should be started.
now simply enter:
source(exmaple.r)
and everything should be fine.
Hope this helps,
Roland
Prateek Singh wrote:
> Hi,
>
> I have 'R' code in file. saved it as exmaple.r
> here is the code.......
>
> library("hopach")
> GSE <- read.table("gene_expression_data",sep="\t",header=TRUE,row.names=TRUE)
> gene.dist <- distancematrix(t(GSE),d="euclid")
> gene.hobj <- hopach(t(GSE), dmat=gene.dist, mss="med")
> labelstosil(gene.hobj$cluster$label,gene.dist)
>
>
> I dont know how to run it on linux terminal. Can you tell me how to
> execute this file. I am using Debian linux.
>
> Regards,
> Praeek Singh
>
More information about the R-help
mailing list