Hello, On Sun, Dec 4, 2011 at 8:08 AM, Mintewab Bezabih <mintewab.beza...@economics.gu.se> wrote: > Dear R users and Jeff, > > Sorry for not being quite explicit in my earlier message.
And you are still not explicit. We have no idea what you've done. > My main problem is while my data seem to be read into R well (I manage to > graph them and all), I cannot get the following line to work. > > tpsfit <- Tps(cbind(x1, x2), y, scale.type="unscaled") > > and I get the following error message > > Error in as.matrix(x) : > error in evaluating the argument 'x' in selecting a method for function > 'as.matrix': Error: object 'x1' not found I'd have to guess that there's no object x1. What does ls() tell you? str(x1)? What do your data look like? You were already given instructions on how to include sample data to construct a reproducible example. You said that graphing your data worked; how did you do so? The posting guide and the advice you were already given were both offered for a reason. The querent needs to do the work of formulating an understandable and answerable question. Sarah > thanks for help > minti > ________________________________________ > Från: Jeff Newmiller [jdnew...@dcn.davis.ca.us] > Skickat: den 3 december 2011 17:45 > Till: Mintewab Bezabih; r-help@r-project.org > Ämne: Re: [R] problems using the thin plate spline method > > I can tell that you are puzzled and confused. Unfortunately, I am not > psychic, so I cannot tell what you did, and therefore cannot tell where you > went astray. > > The solution is for you to read the posting guide mentioned at the bottom of > every R-help message. Spend a little time to create a small bit of data like > yours if your actual data is large (subset and dput are useful for this). > Remember to include the output of sessionInfo, and so on. Many times you are > likely to find the answer yourself by going through these steps, but they are > essential for communication. > > Good luck. > Sent from my phone. Please excuse my brevity. > > Mintewab Bezabih <mintewab.beza...@economics.gu.se> wrote: > >>Dear R users, >> >>I am a beginner in R trying to apply the thin plate spline method to my >>climate data. I used the example in R to do so, and the lines seem to >>run fine ( I am not getting errors) but I am not getting any output in >>the form of graph or anything. I got a warning message saying that >>'surface extends beyond box'. >> >>Any help is much appreciated. >>thanks >>minti -- Sarah Goslee http://www.functionaldiversity.org ______________________________________________ R-help@r-project.org mailing list 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.