internal static DF AddRow(DF df1, List <double> row) { DF dfRes = df1.Clone(); dfRes.AddRow(row); return(dfRes); }
internal DF SubDfRows(int[] sel) { DF dfRes = new DF(this.NCol); for (int i = 0; i < sel.Length; i++) { dfRes.AddRow(this.GetRow(sel[i])); } return(dfRes); }
internal DF SubDfRows(int ini, int end) { DF dfRes = new DF(this.NCol); for (int i = ini; i <= end; i++) { dfRes.AddRow(this.GetRow(i)); } return(dfRes); }
internal static DF RBind(DF df1, DF df2) { DF dfBind = df1.Clone(); for (int i = 1; i <= df2.NRow; i++) { List <double> row = df2.GetRow(i); dfBind.AddRow(row); } return(dfBind); }