I have data three quarters from July-September by Date Hour i.e. 07/01/2013 0:00 , 07/01/2013 1:00. I should have maximum possible 92 * 24 = 2208 Observations. For some reason I have above 2208 observations in some of my data frames.
Here is the the dput of my dataframe
dput(head)
structure(list(DATEHOUR = c("07-01-13 0:00", "07-01-13 10:00",
"07-01-13 11:00", "07-01-13 12:00", "07-01-13 13:00", "07-01-13 14:00"
), ImpressionsA.x = c(156, 564, 884, 1365, 1864, 1470), ImpressionsM.x = c(83,
274, 338, 664, 807, 757), ImpressionsA.y = c(0.4, 0, 0.4, 0,
0, 0), ImpressionsM.y = c(0.2, 0, 0.3, 0, 0, 0), Branded = c(0,
0, 0, 0, 0, 0), ESI = c(0, 0, 0, 0, 0, 0), ImpressionsA.T = c(156.4,
564, 884.4, 1365, 1864, 1470), ImpressionsM.T = c(83.2, 274,
338.3, 664, 807, 757), Leads.T = c(0, 0, 0, 0, 0, 0)), .Names = c("DATEHOUR",
"ImpressionsA.x", "ImpressionsM.x", "ImpressionsA.y", "ImpressionsM.y",
"Branded", "ESI", "ImpressionsA.T", "ImpressionsM.T", "Leads.T"
), row.names = c(1L, 3L, 4L, 5L, 6L, 7L), class = "data.frame")
I read the following posts and links http://astrostatistics.psu.edu/su07/R/html/base/html/strptime.html, format a Date column in a Data Frame, Convert data frame with date column to timeseries and tried to do this: test$timestamp<-as.Date(as.character(test$DATEHOUR), format="%m%d%Y%I%M")
and combinations but its not working out. My goal is to have 2208 (or whatever the unduplicated observations are) by time series. I am new to R and coding as such so please excuse my rookie syntax understanding.