convert date to unix time in R
Quite simple:
as.numeric(as.POSIXct("2013-09-16 2:13:46 EST"))
Simply cast to numeric:
as.numeric(as.POSIXct("2013-09-06", format="%Y-%m-%d"))
# [1] 1378418400
Quite simple:
as.numeric(as.POSIXct("2013-09-16 2:13:46 EST"))
Simply cast to numeric:
as.numeric(as.POSIXct("2013-09-06", format="%Y-%m-%d"))
# [1] 1378418400