Probably load the package that ctree() comes from, possibly party. library(party)
The code you're looking at should tell you. On Thu, Mar 10, 2016 at 9:58 AM, CHIRIBOGA Xavier <xavier.chirib...@unine.ch> wrote: > Dear all, > > > I am using Rstudio. What to do when you get this message? > > Error in plot(ctree(Surv(hours, state) ~ soil + volatile, data = data)) : > could not find function "ctree" > > Thank you, > -- Sarah Goslee http://www.functionaldiversity.org ______________________________________________ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.