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:
parent
45fb614296
commit
6ffcaa0afe
|
|
@ -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
|
||||||
|
|
|
||||||
|
|
@ -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
|
||||||
|
|
|
||||||
|
|
@ -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
|
||||||
|
|
|
||||||
|
|
@ -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
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
#!/broad/tools/apps/R-2.6.0/bin/Rscript
|
#!/bin/env Rscript
|
||||||
|
|
||||||
args <- commandArgs(TRUE)
|
args <- commandArgs(TRUE)
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -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
|
||||||
|
|
|
||||||
|
|
@ -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]
|
||||||
|
|
|
||||||
|
|
@ -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))))
|
||||||
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue