Patterns in static

Apophenia

apop_conversions.c File Reference

Functions


Detailed Description

The various functions to convert from one format to another.


Function Documentation

void apop_crosstab_to_db ( apop_data in,
char *  tabname,
char *  row_col_name,
char *  col_col_name,
char *  data_col_name 
)

See apop_db_to_crosstab for the storyline; this is the complement.

apop_data* apop_db_to_crosstab ( char *  tabname,
char *  r1,
char *  r2,
char *  datacol 
)

Give the name of a table in the database, and names of three of its columns: the x-dimension, the y-dimension, and the data. the output is a 2D matrix with rows indexed by r1 and cols by r2.

Parameters:
tabname The database table I'm querying. Anything that will work inside a from clause is OK, such as a subquery in parens.
r1 The column of the data set that will indicate the rows of the output crosstab
r2 The column of the data set that will indicate the columns of the output crosstab
datacol The column of the data set holding the data for the cells of the crosstab

SourceForge.net Logo

Autogenerated by doxygen on 23 Nov 2009.