Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8089363
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T19:22:20+00:00 2026-06-05T19:22:20+00:00

I have an irregular(?) time series data points in a day as following Jun

  • 0

I have an irregular(?) time series data points in a day as following

Jun 5, 2012 10:58 AM
Jun 5, 2012 10:58 AM
Jun 5, 2012 11:59 AM
Jun 5, 2012 12:25 PM
Jun 5, 2012 1:07 PM
Jun 5, 2012 1:07 PM
Jun 5, 2012 1:17 PM
...

I would like to make a histogram where the x is the interval of hours from 0 hour to 23 and y is the count of the data points in each bin.

I was trying to do this in R and Excel by converting the data above into hour:minute format and then draw histograms.

Two challenges I faced:

  1. How do I convert the data such as above into the standard time format where applications such as Excel or R can handle? is there such functions in each program?
  2. How do you make histogram with such transformed data?

I tried using zoo packages, as.POSITlt functions, but I am lost.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-05T19:22:22+00:00Added an answer on June 5, 2026 at 7:22 pm

    have at look at the chron and lubridate packages

    Time <- c("Jun 5, 2012 10:58 AM",
    "Jun 5, 2012 10:58 AM",
    "Jun 5, 2012 11:59 AM",
    "Jun 5, 2012 12:25 PM",
    "Jun 5, 2012 1:07 PM",
    "Jun 5, 2012 1:07 PM",
    "Jun 5, 2012 1:17 PM")
    library(chron)
    Time2 <- as.chron(Time, format = "%b %d, %Y %I:%M %p")
    library(lubridate)
    x <- hours(Time2) + minutes(Time2) / 60
    hist(x)
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a whole bunch of data.frames with irregular time spacing. I would like
I have an irregular time series that I'm working with that I'd like to
I have an irregular time series contained in xts and separate time index vector
I have an irregular shaped custom button and I would like for it to
I have an irregular time series and am using xts 's endpoints to get
If I have some multivariate irregular time series, such as zoo or xts objects
I need to add two irregular time series (covering business days). I have two
I have an irregular list where the data look like this: [Number] [Number] [Number]
I have an irregular time series ( xts in R ) that I want
I have an irregular time-series (with DateTime and RainfallValue) in a csv file C:\SampleData.csv

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.