Geospatial Modelling Environment

export.csv (Export Table To Delimited Text File)

Exports tables to a delimited textfile format


This tool exports tables to a delimited text file format (by default a comma delimited text file). If the output file already exists, the file will not be overwritten and an error is generated.

The 'transpose' option rotates the data (rows become columns, and columns become rows). If you have a large number of rows in the input table you will not be able to view the table in a program like Excel because of the limit to the number of columns that can be displayed, but you could still use the transposed table in a program that was designed to accept a large number of columns.

The delimiting character can be specified. See the 'delimiter' command for instructions on how to change the delimiting character on all tabular text output.


export.csv(in, out, [transpose]);

inthe input feature or table data source
outthe output delimited text file
[transpose](TRUE/FALSE) if TRUE transposes the table (default=FALSE)


export.csv(in="C:\data\locs.shp", out="C:\data\locs.csv");

export.csv(in="C:\data\locs.shp", out="C:\data\locs.csv", transpose=TRUE);


Please consider making a purchase to support the continued development of these tools  Read more...

Tips on how to use this interface efficiently 


Open Source GIS

Copyright © 2001-2014 Hawthorne L. Beyer, Ph.D., Spatial Ecology LLC    Connect on LinkedIn