This project is read-only.

sending a "list" as a parameter

Sep 20, 2012 at 10:13 PM

parameters <- list(
    AVG = .3
  , OBP = .4
  , SLG = .5

The above is some R code in a script.  I need to send that list as a parameter through RServeCLI. I tried the code below but it failed.  Am I using the wrong construct?

var slst = new SexpList();
slst.Add("AVG", Sexp.Make(.300));
slst.Add("OBP", Sexp.Make(.400));
slst.Add("SLG", Sexp.Make(.500));

rConnection["parameters"] = slst;