I would like to run job using R. I wrote r script as follow
#!/bin/sh
#SBATCH --time=168:00:00
#SBATCH --mem=50gb
#SBATCH --ntasks=1
#SBATCH --job-name=StrAuto
#SBATCH --error=R.%J.err
#SBATCH --output=R.%J.out
#SBATCH --mail-type=ALL
#SBATCH --mail-user=asallam@unl.edu
module load R/3.3
R CMD BATCH AF1.R
Then I worte the command lines in AF1.R file as follow
outer(names(m[,-1]), names(m[,-1]), function(x,y){colSums((m[,x]-m[,y])**2/156854,na.rm=TRUE)})
Now I would like to ask how I load my data m.txt. what is the command that I should write before outer(.......
Thanks in advance