User Tools

Site Tools


howtos:workwithdata:createsetsfromdatafile

This is an old revision of the document!


Use create to make informants from data file

Here's a tar file with several examples and data.

  • Download and un-zip it somewhere on your server where you have access to it with interactive tool, on any account.
  • The best way to learn about the features is to work through the test.t script file in the above tar file looking at the results as you go.

Important parameters

General

allowDuplicate - it is quite likely that the column you want to choose make your informant from will have element names repeated, this parameter just tells create that's O.K. but does not actually make the duplicate entries in the set.

searchElemName1= and replaceElemName1= - use this to search and replace pair adjust the element names as you read them in. Good for removing commas or .'s and simplifying the names. These 2 should always be used togeter

wholeWordElemName - tells you whether the above parameter refer to a substring or whole word

replaceWhiteSpaceInElemName - replace any tab, space or other “white space” in the element names. White space is allowed in the element names when reading in but is not fully supported by all tools and so it's best to either replace the white space here or map to non white space informants before doing any serious manipulation.

From a Row

elemNameRow= - use this to specify the row

elemNameCol= to indicate the first column, only needed if the set should start a column other than the first use parameter *

From a Column

elemNameCol - use this to specify the column - note it will know to do the column and not row by the absence of the parameter elemNameRow

heading=on/off - if this parameter is set to on it will use the second row as a start point with no consideration of commented out lines

firstRow - use this only if you want to start on any row other than the first row with no consideration of commented out lines. Note this overrides the “heading” setting!

howtos/workwithdata/createsetsfromdatafile.1281100053.txt.gz · Last modified: 2010/08/06 13:07 by shona.weldon