Hi, I am pretty new to R and would like to follow the code in the paper below, tradesys package. but I am stuck at the 2nd page where x<-tsts(spx) is written. Could anyopne help me why I am getting an Error :"could not find function "tsts" ". I guess I need function call "tsts". where can I find that function ? I installed tradesys, zoo, RUnit packages but I don't know why it gives me error. Thanks http://r-forge.r-project.org/plugins/scmsvn/viewcvs.php/*checkout*/pkg/inst/doc/tradesys.pdf?rev=19&root=tradesys -- View this message in context: http://n4.nabble.com/Error-could-not-find-function-tsts-tradesys-package-tp1839233p1839233.html Sent from the R help mailing list archive at Nabble.com.
Sarah Goslee
2010-Apr-14 10:51 UTC
[R] Error: could not find function "tsts" tradesys package
Did you load tradesys after you installed it? library(tradesys) That seems to be a common beginner problem. Sarah On Tue, Apr 13, 2010 at 9:56 PM, dbonneau <daronnebonneau at gmail.com> wrote:> > > Hi, I am pretty new to R and would like to follow the code in the paper > below, tradesys package. but I am stuck at the 2nd page where x<-tsts(spx) > is written. Could anyopne help me why I am getting an Error :"could not find > function "tsts" ". I guess I need function call "tsts". where can I find > that function ? I installed tradesys, zoo, RUnit packages but I don't know > why it gives me error. Thanks > > http://r-forge.r-project.org/plugins/scmsvn/viewcvs.php/*checkout*/pkg/inst/doc/tradesys.pdf?rev=19&root=tradesys > -- > View this message in context: http://n4.nabble.com/Error-could-not-find-function-tsts-tradesys-package-tp1839233p1839233.html > Sent from the R help mailing list archive at Nabble.com. > > _________________________________________-- Sarah Goslee http://www.functionaldiversity.org
Thank you so much for your reply. On the first page of the paper, there are logics which I typed> library(tradesys) > library(TTR) > data(spx) > tail(spx),and it runs smoothly. But it gives me an error at x <- tsts(spx) Thanks, db -- View this message in context: http://n4.nabble.com/Error-could-not-find-function-tsts-tradesys-package-tp1839233p1840069.html Sent from the R help mailing list archive at Nabble.com.
Peter Ehlers
2010-Apr-14 20:40 UTC
[R] Error: could not find function "tsts" tradesys package
I think that this package is very much in the early stages of development. It may be that the tsts function is still just a gleam in the eyes of the developers. The paper that you cite may be ahead of code development. -Peter Ehlers On 2010-04-14 10:20, dbonneau wrote:> > Thank you so much for your reply. On the first page of the paper, there are > logics which I typed >> library(tradesys) >> library(TTR) >> data(spx) >> tail(spx) > > ,and it runs smoothly. > But it gives me an error at > x<- tsts(spx) > > Thanks, db-- Peter Ehlers University of Calgary
Erik Iverson
2010-Apr-14 20:44 UTC
[R] Error: could not find function "tsts" tradesys package
You need to take this up with the package authors. After I install tradesys, and type vignette("tradesys"), I get a PDF that no longer contains the example in the PDF you reference from the web. That particular version of the PDF that you reference is probably no longer relevant to the package. Those functions are no longer distributed with tradesys, it appears. dbonneau wrote:> Thank you so much for your reply. On the first page of the paper, there are > logics which I typed >> library(tradesys) >> library(TTR) >> data(spx) >> tail(spx) > > ,and it runs smoothly. > But it gives me an error at > x <- tsts(spx) > > Thanks, db