2.2.16. addIndexed


Purpose

Add data in column(s) of mapped ASCIItable selected from the row indexed by the value in a mapping column.

Operates on given file(s) or STDIN right STDOUT.


parent_gray

Usage

> addIndexed options [file(s)]


parent_gray

Options

--index string
column label containing row index
--offset / -o int [ 0 ]
constant offset for index column value
--asciitable / -a string
filename of ASCIItable from which mapped data should be added
--label / -l string
(list of) column labels to append. Separate multiple columns by comma: first,second,third,...


parent_gray

Examples

  • add squared values
    Suppose we have a reference ASCIItable containing data to which we want to add the squared values of column » y «.
    2 head
    # reference ASCIItable
    x y
    1 1
    2 3
    3 4
    
    The lookup table contains
    2 head
    # lookup ASCIItable
    squared
    1
    4
    9
    16
    25
    

    >  addIndexed --index y --asciitable lookup --label squared < reference
    
    yields
    3 head
    # reference ASCIItable
    # addIndexed --index y --asciitable lookup --label squared
    x y squared
    1 1 1
    2 3 9
    3 4 16
    
Topic revision: r3 - 29 Nov 2016, PhilipEisenlohr


  • News
01 Dec 2018
DAMASK overview paper now online
17 Sep 2018
CMCn2018 & DAMASK user meeting to be hosted at Max-Planck-Institut für Eisenforschung
22 May 2018
Release of version v2.0.2
01 Sep 2016
CMCn2016 & DAMASK user meeting to be hosted at Max-Planck-Institut für Eisenforschung
25 Jul 2016
Release of version v2.0.1
08 Mar 2016
Release of version v2.0.0
22 Feb 2016
New webserver up and running
09 Feb 2016
Migrated code repository from Subversion to GitLab
17 Dec 2014
Release of revision 3813
14 May 2014
Release of revision 3108
02 Apr 2014
Release of revision 3062
16 Oct 2013
Release of revision 2689
15 Jul 2013
Release of revision 2555
15 Feb 2013
Release of revision 2174
13 Feb 2013
Doxygen documentation
16 Dec 2012
Powered by MathJax rendering
23 Nov 2012
Release of revision 1955
15 Nov 2012
Release of revision 1924
01 Nov 2012
Updated sidebar
30 Oct 2012
Significant website updates and content extensions


This site is powered by FoswikiCopyright by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding DAMASK? Send feedback
§ Imprint § Data Protection