Re: [R] F10.1 and i3 format in R

2014-03-10 Thread Rui Barradas
Hello, Take a look at ?sprintf. sprintf("%9.1f", 12.3) sprintf( %3d", 123) Hope this helps, Rui Barradas Em 10-03-2014 13:22, Stefano Sofia escreveu: Dear list members, I have to export (through 'write.table') a dataframe where two columns must be respectively F10.1 (floating with 10 digit

Re: [R] F10.1 and i3 format in R

2014-03-10 Thread Duncan Murdoch
On 10/03/2014 9:22 AM, Stefano Sofia wrote: Dear list members, I have to export (through 'write.table') Why restrict yourself to write.table? a dataframe where two columns must be respectively F10.1 (floating with 10 digits, 1 of which for the That's not the usual meaning for F10.1: normall

[R] F10.1 and i3 format in R

2014-03-10 Thread Stefano Sofia
Dear list members, I have to export (through 'write.table') a dataframe where two columns must be respectively F10.1 (floating with 10 digits, 1 of which for the decimal position) and i3 (integer of length 3). I looked at the 'format' options, but I couldn't see what I need. I also looked for som