Top "Posixct" questions

In the R language, the classes "POSIXct" and "POSIXlt" are representing calendar dates and times (to the nearest second).

Extracting time from POSIXct

How would I extract the time from a series of POSIXct objects discarding the date part? For instance, I have: …

r date time posixct
Convert Factor to Date/Time in R

This is the information contained within my dataframe: ## minuteofday: factor w/ 89501 levels "2013-06-01 08:07:00",... ## dDdt: num 7.8564 2.318 ... ## minutes: POSIXlt, format: NA …

r date posixct r-factor posixlt
Adding time to POSIXct object in R

I would like to add 1 hour to a POSIXct object, but it does not support '+'. This command: as.…

r datetime posixct
Converting time format to numeric with R

In most cases,we convert numeric time to posixct format using R. However, sometimes, we want to compare which time …

r time numeric strptime posixct
How to add/subtract time from a POSIXlt time while keeping its class in R?

I am manipulating some POSIXlt DateTime objects. For example I would like to add an hour: my.lt = as.POSIXlt("2010…

r date time posixct
converting datetime string to POSIXct date/time format in R

Consider a string in the format test <- "YYYY-MM-DDT00:00:00.000-08:00" My goal is to convert those strings to POSIXct …

string r datetime posixct
R - converting date and time fields to POSIXct with HHMMSS format

I have a data file which has three columns thus: 20010101 000000 0.833 20010101 000500 0.814 20010101 001000 0.794 20010101 001500 0.772 ... As is fairly clear to human eyes, the first two …

r datetime posixct
How to convert specific time format to timestamp in R?

I am working on "Localization Data for Person Activity Data Set" dataset from UCI and in this data set there …

r date formatting posixct
How R formats POSIXct with fractional seconds

I believe that R incorrectly formats POSIXct types with fractional seconds. I submitted this via R-bugs as an enhancement request …

r posixct
How to calculate number of days between two dates in R

I'm trying to subtract two dates in R. These are the two dates via the structure command: str(standard_data_4…

r date datetime posixct