At the moment I am using a BATCH file that comprises of the following line of code:
c:\R\bin\Rcmd.exe BATCH "<filepath>/shares.R"
It opens and runs the following R code:
library(ggplot2)
library (XML)
test.df <- xmlToDataFrame(file.choose())
test.df
sapply(test.df, class)
test.df$timeStamp <- strptime(as.character(test.df$timeStamp), "%H:%M:%OS")
test.df$Price <- as.numeric(as.character(test.df$Price))
sapply(test.df, class)
options("digits.secs"=3)
summary (test.df)
with(test.df, plot(timeStamp, Price))
sd (test.df$Price)
mean(test.df$timeStamp)
test.df$timeStamp <- test.df[1,"timeStamp"] + cumsum(runif(7)*60)
summary(test.df)
qplot(timeStamp,Price,data=test.df,geom=c("point","line"))
Price <- summary(test.df$Price)
print (Price)
dput(test.df)
Is it possible to use a PHP form to first select the file and pass it as an argument into the r script there by replacing the file.choose() command, I will be running this from a localhost?