Dear Authorized Sir / Madam,

I have an R script file in which it includes this lines:

How can i to submit this R jobs via SLURM? Thanks in advance.

*testscript.R*
data=read.table("seqDist.50", header=FALSE)[-1]
attach(data)
d=as.matrix(data)
library(cluster)
cluster.pam = pam(d,6)
table(cluster.pam$clustering)

filenameclu = paste("outputfile", ".txt")
write.table(cluster.pam$clustering, file=outputfile,sep=",")

        [[alternative HTML version deleted]]

______________________________________________
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
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.

Reply via email to