[R] Moving average
Rolf Edberg
rolfe at algonet.se
Sun Dec 28 15:56:14 CET 2014
How do I add a new column with 2-days moving average (from
r-adamant(https://github.com/TotallyBullshit/radamant)) on IBM prices in a
csv-file (ibm.csv) and then save all in a new csv file(ibm2.csv)?
Prices
Date
Open
High
Low
Close
Volume
Adj Close*
Dec 26, 2014
162.27
163.09
162.01
162.34
1,912,200
162.34
Dec 24, 2014
162.88
162.99
161.61
161.82
1,868,100
161.82
Dec 23, 2014
162.23
162.90
161.61
162.24
4,043,300
162.24
Dec 22, 2014
158.33
161.91
158.33
161.44
4,682,500
161.44
Dec 19, 2014
157.49
160.41
157.49
158.51
8,864,900
158.51
[[alternative HTML version deleted]]
More information about the R-help
mailing list