Is there a way to call R functions from C# and retrieve the result in C#?
r.net is designed to do this:
https://jmp75.github.io/rdotnet/
older versions can be found here:
http://rdotnet.codeplex.com/