clsnyder + r   60

A Simple R Script for Traders | (R news & tutorials)
#!/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 
7 weeks ago by clsnyder
Rtips data
myresult <- sapply(mydata[,2:5], FUN=summary) # returns a matrix
R 
7 weeks ago by clsnyder
A brief introduction to “apply” in R | What You’re Doing Is Rather Desperate
A brief introduction to “apply” in R | What You’re Doing Is Rather Desperate:
R  statistics 
september 2011 by clsnyder
Cerebral Mastication » Blog Archive » A Fast Intro to PLYR for R
Cerebral Mastication » Blog Archive » A Fast Intro to PLYR for R:
r  statistics  from delicious
september 2011 by clsnyder

Copy this bookmark:



description:


tags: