VS2012 で F# で RProvider を使用しています。カスタム ヒストグラム ブレーク (ビン エッジ) の配列を R.hist に渡したいと思います。整数を渡すと問題ありません (コメントアウトされている行を参照)。手伝っていただけませんか?この場合、関数のオーバーロードを処理する正しい方法は何ですか?
R.hist に関する R ドキュメントはこちら (「break」引数を参照): https://stat.ethz.ch/R-manual/R-devel/library/graphics/html/hist.html
以下の実際の例:
let arr = [| 12.3; 12.4; 13.3; 12.9; 13.2; 13.6 |]
let breaks = [| 12.0; 12.5; 13.0; 13.5; 14.0 |]
let h_tmp = R.hist(namedParams ["x", box arr;
"breaks", box breaks; // <------ fails here!
"plot", box true; ])
let h_counts = h_tmp.AsList().["counts"].AsNumeric().GetValue<float[]>()
どうもありがとう。