Recent content by ledzep

  1. ledzep

    Grab first sequence for each unique values in a column

    Dear R Users, I want to keep only the very first sequence for a given number. Example Data d.f<-data.frame(var1=c(5,5,5,1,1,2,2,5,5,3,1,1,1)) >d.f var1 1 5 2 5 3 5 4 1 5 1 6 2 7 2 8 5 9 5 10 3 11 1 12 1 13 1 # Unique Values > unique(d.f)...
  2. ledzep

    Question on strptime with peeling out hours

    Dear R users, I am trying to peel out information on hours from a column which contains information on date and hours. An example # data x<-dput(structure(list(date = structure(c(4L, 3L, 1L, 5L, 2L), .Label = c("01/14/92 01:03:30", "02/01/92 16:56:26", "02/27/92 22:29:56"...