cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
  • New to JMP? Join us Sept. 23-24 for the Early User Edition of Discovery Summit, tailor-made for new users. Register now for free!
  • Your voice matters! Tell us how you prefer to receive JMP updates, so we can tailor our communication to your needs. Take short survey.
  • See how to access JMP Marketplace - and - find, create & share add-ins to extend your JMP. Watch video.

Discussions

Solve problems, and share tips and tricks with other JMP users.
Choose Language Hide Translation Bar

Binning Continues Date Time data

Is there any way in JMP to convert a column of date time (continuous) into categorical data bins (also date time). For example 6 hour bins..?
1 REPLY 1
gflex
Level III

Re: Binning Continues Date Time data

You can use the Round function to get to the nearest decimal.
If the time (in seconds) is transformed such that your desired units of time are at the decimal place, a round (0) will give the "binning" effect. Then transform back to seconds.
Round( :Time / (60 * 60 * 6), 0 ) * (60 * 60 * 6)

Ceiling or Floor functions could be used in lieu of "Round" for different effects at the decimal point.

Recommended Articles