Also,
formatC(3,width=3,flag='0')
formatC and sprintf are both referenced in the "See Also" part of the
format help page.
-Don
At 9:42 AM -0600 11/9/09, Marc Schwartz wrote:
On Nov 9, 2009, at 9:34 AM, anna freni sterrantino wrote:
Hi !
I'd like to create
a vector
that has this kind of
On Nov 9, 2009, at 9:34 AM, anna freni sterrantino wrote:
Hi !
I'd like to create
a vector
that has this kind of numeration
001
002
003
.
.
.
099
I have looked at format help page but couldn't get
any hint on how to do it.
Thanks
Anna
See ?sprintf
> sprintf("%03d", 1:99)
[1] "001" "002"
Hi !
I'd like to create
a vector
that has this kind of numeration
001
002
003
.
.
.
099
I have looked at format help page but couldn't get
any hint on how to do it.
Thanks
Anna
Anna Freni Sterrantino
Ph.D Student
Department of Statistics
University of Bologna, Italy
via Belle Arti 41
3 matches
Mail list logo