====== txt2pajek: Converting text file data sets into Pajek format ====== //Program by Jürgen Pfeffer, Vienna University of Technology// \\ [[http://www.pfeffer.at/txt2pajek/|txt2pajek last version]] This program converts different types of text files into pajek .net files. The improvements compared to [[faq:excel2pajek|Excel2Pajek]] are: * no size limits * about 10 times faster than excel2pajek * optional line values * optional other line settings (e.g. color, line labels, ...) * works with different separators * optional loops * optional empty cells \\ **__How to do__** \\ Select the input file, select the separator (e.g. tab, comma, ...). Now select the columns in which the data are contained. With the prefix and suffix option it is possible to add e.g. quotation marks ahead and after line labels or add a 'c' in front of a column with color information. Use '1' in line values if there are no line values but other line infos. \\ **__Additional Informations__** \\ * The option 'allow empty cells' creates a "***UNKNOWN***" vertex (in case of 2-mode: "***UNKNOWN1***" and "***UNKNOWN2***"). * Multiple lines stay multiple lines. * If there are any " or ' (e.g. to identify text) they will be ignored. \\ **__txt2pajek & Command Line__** \\ Use **exactly 9 parameters** in exactly this way: - Source File - Destination File - Seperator [tab, comma, semicolon, blank] - 1st Column - 2nd Column - Line Values Column [0=set all line values 1] - Line(s) from top to ignore - Modes [1,2] - Arcs or Edges [1=Edges, 2=Arcs] For example: txt2pajek test.txt test.net tab 1 2 3 0 1 1 \\ **__Resources__** \\ Download {{pajek:dl:txt2pajek_2012-07.zip|Text2Pajek (32-2G, 32-4G, and 64 bit), July 2012}}. Old page: [[http://vlado.fmf.uni-lj.si/pub/networks/pajek/howto/text2pajek.htm|Converting text file data sets]] into Pajek format. \\ Old version {{wiki:txt2pajek_2009-02.zip|Text2Pajek, February 2009}}. \\ **__Acknowledgment__** \\ Thanks to Vlado, Andrej and Harald for their inspirations. \\ 25. July 2012 / 23. February 2009 / 15. October 2004