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

Leandro Marino leandromarino at leandromarino.com.br
Wed Mar 4 20:53:42 CET 2015


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]]



More information about the R-help mailing list