[R] using sample

2011-12-07 Thread bevare
Hi, Can anyone help sort out the problem with the following script - I am a R newbie and I am self taught. obs.all = c() for(i in 1:386){ if (n.sim[i]>0){ obs = (1:133429)[event.details[,2] == i] obs.all = c(obs.all, sample(obs[obs < n.sim[i]], size = n.sim[i],

[R] excel dates and times in R

2011-08-05 Thread bevare
single object in R that combines these and converts them into a sensible R format (e.g. ISOdatetime(1961,06,25,04,00,00,tz="GMT"). I have played with the function chron and also strptime but can't seem to get them to work. Can anybody help me out please? Thanks Bevare -- View