1 /* 2 * gretl -- Gnu Regression, Econometrics and Time-series Library 3 * Copyright (C) 2001 Allin Cottrell and Riccardo "Jack" Lucchetti 4 * 5 * This program is free software: you can redistribute it and/or modify 6 * it under the terms of the GNU General Public License as published by 7 * the Free Software Foundation, either version 3 of the License, or 8 * (at your option) any later version. 9 * 10 * This program is distributed in the hope that it will be useful, 11 * but WITHOUT ANY WARRANTY; without even the implied warranty of 12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 * GNU General Public License for more details. 14 * 15 * You should have received a copy of the GNU General Public License 16 * along with this program. If not, see <http://www.gnu.org/licenses/>. 17 * 18 */ 19 20 #ifndef GRETL_JOIN_H 21 #define GRETL_JOIN_H 22 23 typedef enum { 24 AGGR_NONE, 25 AGGR_COUNT, 26 AGGR_AVG, 27 AGGR_SUM, 28 AGGR_MIN, 29 AGGR_MAX, 30 AGGR_SEQ, 31 AGGR_MIDAS 32 } AggrType; 33 34 int gretl_join_data (const char *fname, 35 const char **vnames, 36 int nvars, 37 DATASET *dset, 38 const int *ikeyvars, 39 const char *okey, 40 const char *filtstr, 41 const char *srcname, 42 AggrType aggr, 43 int seqval, 44 const char *auxname, 45 const char *tconvstr, 46 const char *tconvfmt, 47 int midas_pd, 48 gretlopt opt, 49 PRN *prn); 50 51 #endif /* GRETL_JOIN_H */ 52