我有这个脚本文件:
library(fBasics) # Load the package fBasics.
da=read.table("C:\\Users\\jose\\Tese\\Analysis of Financial Time Series\\dibm3dx7008.txt",header=T) # Load the data.
dim(da) # Find size of the data: 9845 rows and 5 columns.
da[1,] # See the first row of the data
ibm=da[,2] # Obtain IBM simple returns
sibm=ibm*100 # Percentage simple returns
basicStats(sibm) # Compute the summary statistics
我想从powerpoint运行它;我在powerpoint上尝试过VBA,任何人都可以帮助我
2 回答
不是你的问题的直接答案,但你可能会看看使用Sweave(或knitr)与beamer幻灯片 .
您可以将脚本放入* .bat文件,然后通过Shellexecute从Powerpoint执行此操作 . 但这是一种可怕的痛苦,并且极易受到更改文件位置的影响 .
一些代码: