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!
: [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
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)
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 -