Can run R scripts on the command line

git-svn-id: file:///humgen/gsa-scr1/gsa-engineering/svn_contents/trunk@3750 348d0f76-0448-11de-a6fe-93d51630548a
This commit is contained in:
depristo 2010-07-09 00:13:18 +00:00
parent 45fb614296
commit 6ffcaa0afe
8 changed files with 16 additions and 12 deletions

View File

@ -1,4 +1,4 @@
#!/broad/tools/apps/R-2.6.0/bin/Rscript #!/bin/env Rscript
args <- commandArgs(TRUE) args <- commandArgs(TRUE)
verbose = TRUE verbose = TRUE

View File

@ -1,4 +1,4 @@
#!/broad/tools/apps/R-2.6.0/bin/Rscript #!/bin/env Rscript
args <- commandArgs(TRUE) args <- commandArgs(TRUE)
verbose = TRUE verbose = TRUE

View File

@ -1,4 +1,4 @@
#!/broad/tools/apps/R-2.6.0/bin/Rscript #!/bin/env Rscript
args <- commandArgs(TRUE) args <- commandArgs(TRUE)
verbose = TRUE verbose = TRUE

View File

@ -1,4 +1,4 @@
#!/broad/tools/apps/R-2.6.0/bin/Rscript #!/bin/env Rscript
args <- commandArgs(TRUE) args <- commandArgs(TRUE)
verbose = TRUE verbose = TRUE

View File

@ -1,4 +1,4 @@
#!/broad/tools/apps/R-2.6.0/bin/Rscript #!/bin/env Rscript
args <- commandArgs(TRUE) args <- commandArgs(TRUE)

View File

@ -1,4 +1,4 @@
#!/broad/tools/apps/R-2.6.0/bin/Rscript #!/bin/env Rscript
args <- commandArgs(TRUE) args <- commandArgs(TRUE)
verbose = TRUE verbose = TRUE

View File

@ -1,4 +1,4 @@
#!/broad/tools/apps/R-2.6.0/bin/Rscript #!/bin/env Rscript
args <- commandArgs(TRUE) args <- commandArgs(TRUE)
fileToRead <- args[1] fileToRead <- args[1]

View File

@ -41,3 +41,7 @@ cumhist <- function(d) {
h <- hist(d) h <- hist(d)
#plot(h$mids, cumsum(h$count), type="b", col="orange", lwd=2) #plot(h$mids, cumsum(h$count), type="b", col="orange", lwd=2)
} }
revcumsum <- function(x) {
return(rev(cumsum(rev(x))))
}