[R] Unfound objects in function

2006-04-18 Thread Colin Beale
A couple of my functions that were working last week seem to have been changed over the weekend and no longer work, but I can't understand why not: it seems that objects defined at the start of the function are not located further on in the function, when this worked fine before. An example

Re: [R] Unfound objects in function

2006-04-18 Thread Prof Brian Ripley
It does not say `unfound' it says `missing value'. See ?NA. Note it is the value and not the object that is said to be missing. Looks like on your data that one or more of the values you are summing is NA. On Tue, 18 Apr 2006, Colin Beale wrote: A couple of my functions that were working

Re: [R] Unfound objects in function

2006-04-18 Thread Peter Ehlers
Colin, Did you use correction = trans in Kinhom in the past? I think Ki$trans will contain a number of NAs. Try diff- sum (Ki$theo - Ki$trans, na.rm = TRUE) Peter Ehlers Colin Beale wrote: A couple of my functions that were working last week seem to have been changed over the weekend