Concordancing with Libreoffice and .csv files

49 views
Skip to first unread message

Kevin Parent

unread,
Mar 28, 2013, 11:52:42 PM3/28/13
to corpling-with-r
Hello all.

So I'm doing some concordancing, mostly straight out of the book. If I'm writing the data with:
cat(file=file.name,'LEFT\tNODE\tRIGHT',hits,sep='\n')
is there some way I can get the LEFT column to be left-justified, the NODE to be centered, etc? Of course I can do it manually, but it's a bit annoying when dealing with a lot of concordance files.

I know that .csv files have no formatting at all, so perhaps it's possible to have a second script load the files and rewrite them in a format that allows formatting code?


--
Kevin Parent, Ph.D
Korea Maritime University
Chair, Korea Toastmasters Territorial Council


Stefan Th. Gries

unread,
Mar 29, 2013, 7:55:01 AM3/29/13
to CorpLing with R
Not sure it wouldn't be easier to just record a macro in LO, but I
haven't played around with this much ...
STG
--
Stefan Th. Gries
-----------------------------------------------
University of California, Santa Barbara
http://www.linguistics.ucsb.edu/faculty/stgries
-----------------------------------------------
Reply all
Reply to author
Forward
0 new messages