Re: [R] unique function works funny

2010-02-04 Thread Rolf Turner
FAQ 7.31 cheers, Rolf Turner On 5/02/2010, at 4:23 PM, Guochen Song wrote: > I have 3 nested functions, the core function goes like this: > listx<-function(x,tox) > { > xt=table(x) > wa=sort(unique(x,fromLast=FALSE)) > print(xt) > print(wa) > .. > return(kk) > > }

[R] unique function works funny

2010-02-04 Thread Guochen Song
I have 3 nested functions, the core function goes like this: listx<-function(x,tox) { xt=table(x) wa=sort(unique(x,fromLast=FALSE)) print(xt) print(wa) .. return(kk) } listx get called in functionB, and functionB get called in functionC. When I test functionB, the listx function works jus