[R] 2 questions : format and hh:mm

2004-07-29 Thread Bruno Cutayar
Dear R-users, i have two questions : 1- first of all, i wish to know the way to obtain a serie with a format like 00 : ( 01,02,03,04) or like postal code (01100,0). for instance, i do : format(strptime(as.character(c(1:4)),%H),%H) but it sounds complicate and not really efficient!

RE: [R] 2 questions : format and hh:mm

2004-07-29 Thread Jacques VESLOT
: [R] 2 questions : format and hh:mm Dear R-users, i have two questions : 1- first of all, i wish to know the way to obtain a serie with a format like 00 : ( 01,02,03,04) or like postal code (01100,0). for instance, i do : format(strptime(as.character(c(1:4)),%H),%H) but it sounds

Re: [R] 2 questions : format and hh:mm

2004-07-29 Thread Prof Brian Ripley
On Thu, 29 Jul 2004, Bruno Cutayar wrote: Dear R-users, i have two questions : 1- first of all, i wish to know the way to obtain a serie with a format like 00 : ( 01,02,03,04) or like postal code (01100,0). for instance, i do : format(strptime(as.character(c(1:4)),%H),%H)

Re: [R] 2 questions : format and hh:mm

2004-07-29 Thread Gabor Grothendieck
Bruno Cutayar bcutayar at lfdj.com writes: 2- i search to generate a serie of hours and minutes on 24h : 00:00 , 00:01, 00:02, 00:03, ...,..., 23:59 Using the chron package, if min is sequence of chron times, e.g. require(chron) m - 24 * 60 # minutes in a day min -