Man page - gbget(1)
Packages contains this manual
- gbnear(1)
- gbnlmult(1)
- gbquant(1)
- gblaepfit(1)
- gbmave(1)
- gbkreg(1)
- gbtest(1)
- gbmstat(1)
- gbgcorr(1)
- gbepfit(1)
- gbnlprobit(1)
- gbnlpanel(1)
- gbbin(1)
- gbdummyfy(1)
- gbgrid(1)
- gbnlreg(1)
- gbconvtable(1)
- gbinterp(1)
- gbrand(1)
- gbfun(1)
- gbstat(1)
- gbglreg(1)
- gbhisto(1)
- gbfilternear(1)
- gbplot(1)
- gbker2d(1)
- gbhisto2d(1)
- gbget(1)
- gbxcorr(1)
- gbenv(1)
- gbacorr(1)
- gbboot(1)
- gbmodes(1)
- gbhill(1)
- gbkreg2d(1)
- gbker(1)
- gblreg(1)
- gbalafit(1)
- gbnlqreg(1)
- gbdist(1)
- gbnlpolyit(1)
- gblafit(1)
- gbaepfit(1)
apt-get install gbutils
Manual
GBGET
NAMESYNOPSIS
DESCRIPTION
OPTIONS
EXAMPLES
AUTHOR
REPORTING BUGS
COPYRIGHT
NAME
gbget - Basic data extraction and manipulation tool
SYNOPSIS
gbget [ options ] โfilename [ index ] (C,R)transโ
DESCRIPTION
Print slices of
tabular data from files and apply transformations. Data are
read from text files with fields separated by space (use
option
-F
to specify a different separator). Inside
data file, data-blocks are separated by two empty lines.
File can be compressed with zlib (.gz).
filename
is the input file. If not specified it default to stdin or the last specified filename if any.
|
index |
stands for a data-block index. |
||
|
index |
stands for a data-block index. |
||
|
C,R |
stands for columns and rows spec given as "min:max:skip" to select from "min" to "max" every "skip" steps. If negative min and max are counted from the end. By default all data are printed ("1:-1:1"). If min>max then count is reversed and skip must be negative ( -1 by default). Different specs are separated by semicolon โ;โ and considered sequentially. |
||
|
trans |
is a list of transformations applied to selected data: โdโ take the diff of subsequent columns; โDโ remove all rows with at least one Not-A-Number (NAN) entry; โfโ flatten the output piling all columns; โlโ take log of all entries, โPโ print all entries collected as a data-block; โtโ transpose the matrix of data; โzโ subtract from the entries in each column their mean; โZโ replace the entry in each column with their zscore; โwโ divide the entry in each columns by their mean. |
โ<..;..>โ functions separated by semicolons in angle brackets can be used for generic data transformation; the function is computed for each row of data. Variables names are โxโ followed by the number of the column and optionally by โlโ and the number of lags. For instance โx2+x3l1โ means the sum of the entries in the 2nd column plus the entries in the 3rd column in the previous row. โx0โ stands for the row number and โxโ is equal to โx1โ
โ<@..;..>โ if the functions specification starts with a โ@โ the functions are computed recursively along the columns. In this case the number after the โxโ is the relative column counted starting from the one considered at each step.
โ{...}โ a function in curly brackets can be use to select data: only rows that return a non-negative value are retained
OPTIONS
|
-F |
set the input fields separators (default โ \tโ) |
||
|
-o |
set the output format (default โ%12.6eโ) |
||
|
-e |
set the output format for empty fields (default โ%13sโ) |
||
|
-s |
set the output separation string (default โ โ) |
||
|
-t |
define global transformations applied before each output (default โโ) |
||
|
-v |
verbose mode |
EXAMPLES
gbget โfile(1:3)ldโ
select the first three columns in โfileโ, take the log and the difference of successive columns;
gbget โfile(2,-10:-1)
<xห2> select the last ten elements of the secondโ of โfileโ and print their squares
gbget โ[2]()โ โ[1]()โ < ...
select the second and first data block from the standard input.
gbget โfile(1:3)<x1*x2-x3>โ
select the first three columns in โfileโ and in each row multiply the first two entries and. subtract the third.
gbget โfile()<@x1+x2>โ
print the sum of two subsequent columns
gbget โfile(1:3){x2-2}โ
select the first three columns in โfileโ for the rows whose second field is not lower then 2
AUTHOR
Written by Giulio Bottazzi
REPORTING BUGS
Report bugs to <gbutils@googlegroups.com>
Package home page <http://cafim.sssup.it/หgiulio/software/gbutils/index.html>
COPYRIGHT
Copyright ยฉ 2001-2018 Giulio Bottazzi This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License (version 2) as published by the Free Software Foundation;
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.