<< crlag Basic functions defaultcoef >>

Grocer >> Basic functions > dblist

dblist

gives the content of a database

CALLING SEQUENCE

[l]=dblist(filein,arg1,...,argn)

PARAMETERS

Input

* filein = name of the database

* argi =

  - 'matlab' if the database is a matlab one

  - a string of the type '***xxx****', '>xxx', 'xxx>'  or '>xxx>;' to search data whose names contain the specified character 'xxx' either at a precise place (case of stars) or at any place (case of '>')

 

Output

* l = column vector containing the names of variables in the database

DESCRIPTION

Gives the content of a database

EXAMPLE

dblist(GROCERDIR+'/macros/grocer/db/datajpl.dat')

//returns the content of James Le Sage database: 

//!westvirginia  !
//!              !
//!tennesse      !
//!                !
//!pennsyvlania  !
//!                !
//!ohio          !
//!                !
//!michigan      !
//!                !
//!kentucky      !
//!                !
//!indiana       !

dblist(GROCERDIR+'/macros/grocer/db/datajpl.dat','>enn>') 

//returns the names in James Le Sage database that contain the string 'enn' in the middle of the name:

//!tennesse      ! 
//!              !
//!pennsyvlania  !

dblist(GROCERDIR+'/macros/grocer/db/datajpl.dat','*enn****') 




//returns the names in James Le Sage database that  has exactly 8 characters and contain the string 'enn' from the second character until the fourth:

//!tennesse      !

AUTHOR

Eric Dubois 2002-2009

Report an issue
<< crlag Basic functions defaultcoef >>