search for: r_mean

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

Did you mean: _mean
2001 Feb 11
6
embedding R?
...vial example follows): #include <stdio.h> #include <R.h> #define MAXNUM = 100; int main(int argc, char **argv) { int n; int i[MAXNUM]; for(n = 1 ; n < argc && n <= MAXNUM ; n++) { i[n-1] = atoi(argv[n]); } printf("mean: %4.2f\n", R_mean(i, n - 1)); exit(0); } % gcc -lR mean.c -o mean % mean 4 5 6 7 mean: 5.5 % exit Where "R_mean" is calling the R function mean() ??? Any help is appreciated. And I'm not going to worry about graphical functions just yet. Just need a pointer or two into the right piece of docum...