Displaying 2 results from an estimated 2 matches for "functionc".
Did you mean:
function
2010 Feb 05
1
unique function works funny
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 just fine. When I call
functionB from functionC, strange thing happened:
My result for xt:
0.07 0.17 0.2
1 1 6
My result for wa:
0.07 0.17 0.20 0.20
(my data obviously is 0.2 repeated 8 times, 1 0.17 and 1 0.07). I thought
it has some...
2007 May 08
3
Median
Hello.
I need calculate the median of several column of a data.frame, in a new
column of this data frame, but the median operator only calculate from a
vector.
I have made a functionc that calculate the median but it is very slow.
Are there any method in any package to calculate this?
Best regards.
Jose Sierra.
A B C
-0.01678042 -0.0003354948 -0.0003354948
0.17320485 0.2359448911 0.4884204711
-0.760...