Sorry if this has been asked before, but has there been any mention or
interest in an S (the statistical programming language used by SPlus and
R) filter/extension/etc?
i.e.:
#!/usr/bin/perl -w
use Inline S,
PREFIX => 'my_';
my @a = 1..100;
print mean(@a), "\t", stdev(@a), "\t", kurtosis(@a), "\n";
__END__
__S__
my_mean <- function (a) {
mean(a);
}
my_stdev <- function (a) {
stdev(a);
}
my_kurtosis <- function (a) {
(sum(a - mean(a))/stdev(a)) ** 4;
}
Forgive me if I have the semantics incorrect - I haven't begun to use
Inline very much, but I know I'm going to ... this is a very simple
example, but if it's already been discussed then I don't want to repeat.
On the other hand, if it's a new idea, then I have plenty more to talk
about ;)
Oh, is there a searchable archive of this list somewhere?
Thanks,
-Aaron