Hey all,

I'm interested in calculating some basic stats from a list of numbers saved to a file on the SD card. I've been searching for how to calculate the median from a shell script since that is one of the harder stats because it requires sorting the numbers first. I found this discussion but I'm not sure if the answers will work on the limited resources the Yun has:

http://unix.stackexchange.com/questions/13731/is-there-a-way-to-get-the-min-max-median-and-average-of-a-list-of-numbers-in

I'm really interested in try to get the R programming language to work on the Linux side of the Yun if possible since that would have benefits in other projects and upgrades. I'm just not sure if R can be installed on the Yun and was hoping the community might know. It looks like it can be installed on the Raspberry Pi (I know, more resources).

If that's a dead end though I would be interested if anyone does any calculations of stats (mean, median, min, max, standard deviation, etc) on the Linux side of their Yun. I don't have much room left in my program memory to do it within the arduino sketch.

Thanks in advance for any ideas!

Summary

1) will R work on the Yun

2) has anyone calculated stats on the Linux side of the Yun and how