Re: [R] How to execute R code

2008-01-25 Thread Roland Rau
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... > >

[R] How to execute R code

2008-01-25 Thread Prateek Singh
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$cl