[R] Suggestion in justify in write.fwf {gdata}

Federman, Douglas Douglas.Federman at utoledo.edu
Wed Mar 4 21:08:35 CET 2015


Perhaps you should contact the package maintainer regarding this request.

Who is wise? One who learns from every person.
Who is strong? One who overpowers his evil inclinations.
Who is rich? One who is satisfied with his lot.
Who is honorable? One who honors his fellows.
- Pirkei Avot [excerpt]


-----Original Message-----
From: R-help [mailto:r-help-bounces at r-project.org] On Behalf Of Leandro Marino
Sent: Wednesday, March 04, 2015 2:54 PM
To: r-help at r-project.org
Subject: [R] Suggestion in justify in write.fwf {gdata}

Hi,

Sometimes, I need to do some hard work when exporting files using gdata package.

It will be very useful if the justify parameter of write.fwf can receive vectors. In some jobs I need to left and right justify in different columns of the same file.

Nowadays, I do a lot ow this working in preparing manually each file.

I was wondering something like


justify=c(rep('right',3),'left',rep('right',2),rep('left',10))

in a file that has 15 columns.


Best,
Leandro

	[[alternative HTML version deleted]]

______________________________________________
R-help at r-project.org mailing list -- To UNSUBSCRIBE and more, see https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.



More information about the R-help mailing list