This is really clunky but it works:
This is ugly code and I am sure someone with knowledge of manipulating dates in R will give a much better answer.Code:#Fake data frame data <- as.data.frame(rep("2012-05-29 06:56:18", 100)) #Making a new column in data frame with just time data[,2]<- unlist(strsplit(as.character(data[,1]), " "))[c(F,T)]





Reply With Quote
