Bu ameliyat için bir argüman olarak bir R komut içine geçmek için bir dosyayı seçmek için PHP kullanmak mümkün mü?

0 Cevap php

Şu anda ben kod aşağıdaki satırı içeren bir toplu iş dosyası kullanıyorum:

c:\R\bin\Rcmd.exe BATCH "<filepath>/shares.R" 

Bu açılır ve aşağıdaki R kod çalışır:

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)

Ilk dosyasını seçin ve () komutu file.choose değiştirerek orada r komut dosyası içine bir argüman olarak geçirmek için bir PHP form kullanmak mümkün mü, ben bir localhost'tan bu çalışıyor olacak?

0 Cevap