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 DF SubDfCols(int[] sel) { DF dfRes = new DF(); for (int i = 0; i < sel.Length; i++) { dfRes.AddColumn(this.GetColumn(sel[i])); } return(dfRes); }
internal DF SubDfCols(int ini, int end) { DF dfRes = new DF(); for (int i = ini; i <= end; i++) { dfRes.AddColumn(this.GetColumn(i)); } 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); }