I am using R for time series,The SMA() function in the “TTR” R package would be used, but when I first install the “TTR” R package like
>install.packages("TTR")
Warning message:
package ‘TTR’ is not available (for R version 3.2.0)
I am using R for time series,The SMA() function in the “TTR” R package would be used, but when I first install the “TTR” R package like
>install.packages("TTR")
Warning message:
package ‘TTR’ is not available (for R version 3.2.0)
This is actually an issue with that package not being available on CRAN as a binary package for your particular OS / R Version combination. In my experience when this happens you can do one of two things:
you can install from source using
install.packages("TTR", type="source")