xtmkdata

Section: User Commands (1)
Updated: 2002-10-26
Index Return to Main Contents

 

NAME

xtmkdata - creates new data

 

SYNOPSIS

xtmkdata -c calculation formula -a name of a new attribute [-l number of lines] [-o OUTPUT] [-z] [-t] [-T TEMP DIRECTORY]

 

DESCRIPTION

New data is created based on the computation formula defined at option -c. All operators and functions available for xtcal can be used for the formula, yet the functions will be limiting since no input is required for this command.

 

PARAMETERS

-c computation formula
method of computation by combining built-in operators and functions.
-l number of lines
the number of lines to be generated. Default value is 10.
-a new attribute
the name of the new attribute created by this command.

 

FILE OPTIONS

-o output filename
if a suffix of the filename is '.gz', the command automatically returns the output data in zip archive. When "-o" is not specified, the result will sent to standard output.
-T directory of work file
the directory name for temporary files used in this command.
-z zip archive
compress the standard output to zip archive. When the option "-o" is not given and "-z" is specified, the output will be compressed as zip archive.
-t plain text
xtagg treats the input and output data as plain text format.

 

USAGE

Example 1. Create a new data set with 1 to 100 in each row in sequential order. e.g. xtmkdata -c 'line()' -l 100 -a number -o rsl.xt Output file -rsl.xt
<field no="1">
<name>number</name>
</field>
</header>
<body><![CDATA[
1
2
3
4
5


95
96
97
98
99
100
]]></body>

Example 2. Create 100 lines of records with numeric values less than 10 in random order. e.g. xtmkdata -c 'rand(0,10,1)' -l 100 -a number -o rsl.xt Output file -rsl.xt

<field no="1">
<name>number</name>
</field>
</header>
<body><![CDATA[
8
4
7
7
8
2
3
7
2


8
4
7
6
8
]]></body>

 

SEE ALSO

xtcount(1), xtstatistics(1) For complete documentation and tutorial of xtmkdata and other command s, please visit http://musashien.sourceforge.net.

 

BUG REPORT

If you find a bug in xtmkdata, please send an electronic mail to musashi@adm.osaka-sandai.ac.jp. Before sending a bug report, please verify that you have the lastest version of MUSASHI. Read this manual carefully to ensure the error is not caused by a quirk in the language.

 

AUTHORS

Yukinobu Hamuro, Naoki Katoh, Katsutoshi Yada, Stephane Cheung


 

Index

NAME
SYNOPSIS
DESCRIPTION
PARAMETERS
FILE OPTIONS
USAGE
SEE ALSO
BUG REPORT
AUTHORS

This document was created by man2html, using the manual pages.
Time: 22:43:54 GMT, June 24, 2003