Top "Posixct" questions

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

How to make time difference in same units when subtracting POSIXct

I want to subtract to POSIXct. I can do this but depending on the first row (i guess?) the difference …

r datetime posixct
Convert Date to POSIXct

Why does the Date below change to "2014-07-07" when converted to POSIXct? Sys.setenv(TZ='America/Sao_Paulo') d &…

r date posixct
Round a POSIX date (POSIXct) with base R functionality

I'm currently playing around a lot with dates and times for a package I'm building. Stumbling across this post reminded …

r date datetime rounding posixct
Subset dataframe based on POSIXct date and time greater than datetime using dplyr

I am not sure what is going wrong with selecting date times as a POSIXct format. I have read several …

r filter dplyr lubridate posixct
Converting datetime from character to POSIXct object

I have an instrument that exports data in an unruly time format. I need to combine the date and time …

r datetime date-formatting posixct strptime
Aggregate15 minute data to hourly

I have a data frame that looks like this: Timedate TotalSolar_MW 20 2013-06-01 04:45:00 13.0 21 2013-06-01 05:00:00 41.7 22 2013-06-01 05:15:00 81.8 23 2013-06-01 05:30:00 153.0 24 2013…

r dataframe aggregate posixct
Create a regular sequence of date-times (POSIXct) using seq()

My goal is to create a vector of POSIXct time stamps given a start, an end and a delta (15min, 1…

r date posixct
Plotting POSIXct timestamp series with ggplot2

I would like to plot the results of a load test. Each row contains a timestamp in seconds and the …

r ggplot2 posixct
How to calculate time difference with previous row of a data.frame by group

The problem I am trying to solve is that I have a data frame with a sorted POSIXct variable in …

r datetime posixct
Looping over a Date or POSIXct object results in a numeric iterator

Why does iterating through a Date or POSIXct object result in numeric? For example: test = as.Date("2009-01-01") print( …

r date for-loop attributes posixct