search for: sort_numeric

Displaying 1 result from an estimated 1 matches for "sort_numeric".

Did you mean: sorted_numeric
2010 Dec 04
1
what is this averaging function called ?, has R a built in function for it ?
...e what the function is doing, it uses some function I created but the meaning is obvious: #get csv file and interchange rows with columns to get two arrays $csv = aic(getcsv(file_get_contents("out.csv"))); #now those arrays contained in one bigger array are sorted array_multisort($csv[0],SORT_NUMERIC,$csv[1],SORT_NUMERIC); #second array is created and values that will be put on x or 0 axis are made unique with every y or 1 # value is going into array under x/0 it will be used after to make mean arithmetic, geometric or harmonic foreach ($csv[0] as $k=>$x) { $sum[$x][] = $csv[1][$k]; } #th...