A Simple R Script for Traders | (R news & tutorials)
7 weeks ago by clsnyder
#!/usr/bin/Rscript
require(quantmod)
arg <- commandArgs(trailingOnly = TRUE)
stock <- getQuote(arg)
last <- stock[2]
high <- stock[6]
low <- stock[7]
pctile <- (last-low)/(high-low)
bingo <- round(pctile * 100)
b <- as.integer(bingo)
sprintf("%s is trading at the %ith percentile of its daily range", arg ,b)
R
finance
require(quantmod)
arg <- commandArgs(trailingOnly = TRUE)
stock <- getQuote(arg)
last <- stock[2]
high <- stock[6]
low <- stock[7]
pctile <- (last-low)/(high-low)
bingo <- round(pctile * 100)
b <- as.integer(bingo)
sprintf("%s is trading at the %ith percentile of its daily range", arg ,b)
7 weeks ago by clsnyder
Rtips data
7 weeks ago by clsnyder
myresult <- sapply(mydata[,2:5], FUN=summary) # returns a matrix
R
7 weeks ago by clsnyder
Calling Google Maps API from R | (R news & tutorials)
october 2011 by clsnyder
Calling Google Maps API from R:
R
october 2011 by clsnyder
A brief introduction to “apply” in R | What You’re Doing Is Rather Desperate
september 2011 by clsnyder
A brief introduction to “apply” in R | What You’re Doing Is Rather Desperate:
R
statistics
september 2011 by clsnyder
Reporting Good Enough to Share
september 2011 by clsnyder
Reporting Good Enough to Share:
R
statistics
finance
from delicious
september 2011 by clsnyder
Cerebral Mastication » Blog Archive » A Fast Intro to PLYR for R
september 2011 by clsnyder
Cerebral Mastication » Blog Archive » A Fast Intro to PLYR for R:
r
statistics
from delicious
september 2011 by clsnyder
R Programming - Wikibooks, open books for an open world
september 2011 by clsnyder
R Programming - Wikibooks, open books for an open world:
statistics
reference
cool
R
from delicious
september 2011 by clsnyder
Copy this bookmark: