From bbe7ad1a7454599693c188fe1eaf8f5d6e154206 Mon Sep 17 00:00:00 2001 From: Jason Stover Date: Sun, 30 Oct 2005 15:02:51 +0000 Subject: [PATCH] Fixed column/variable lookup --- src/cat.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/cat.c b/src/cat.c index 09cdebde..0dd9a014 100644 --- a/src/cat.c +++ b/src/cat.c @@ -354,6 +354,7 @@ design_matrix_create (int n_variables, tmp = &(dm->vars[col]); tmp->v = v; tmp->first_column = col; + tmp->last_column = col; col++; } else if (v->type == ALPHA) @@ -399,7 +400,7 @@ design_matrix_col_to_var_index (const struct design_matrix *dm, size_t col) /* Return a pointer to the variable whose values - are stored in column col. + are stored in column col. BUG IN HERE */ struct variable * design_matrix_col_to_var (const struct design_matrix *dm, size_t col) -- 2.30.2