internal static DF AddRow(DF df1, List <double> row) { DF dfRes = df1.Clone(); dfRes.AddRow(row); return(dfRes); }
internal static DF AddColumn(DF df, List <double> col) { DF dfRes = df.Clone(); dfRes.AddColumn(col); return(dfRes); }
internal static DF AddColumn(DF df, AR ts) { List <double> col = ts.ToList(); DF dfRes = df.Clone(); dfRes.AddColumn(col); return(dfRes); }
internal static DF CBind(DF df1, DF df2) { DF dfRes = df1.Clone(); for (int i = 1; i <= df2.NCol; i++) { dfRes.AddColumn(df2.GetColumn(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); }