Turn on suggestions

Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.

Showing results for

- JMP User Community
- :
- Discussions
- :
- Re: Grouping measurement runs of different duration

- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page

Highlighted

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Get Direct Link
- Email to a Friend
- Report Inappropriate Content

Apr 11, 2013 5:56 PM
(6057 views)

I have a column of data and a time stamp for a test performed over several minutes. The test consists of multiple bursts of data over this time period. I need to analyze each burst of data and compare statistics between bursts.

The problem is that the data has an irregular number of points. Each burst is separated by a few seconds, so I can use the time stamp to group the data. However, I haven't figured out how to make that work.

I can use the DIF function to figure out the transitions between groups, but I do not know how to increment a group number at this transition.

The goal would be to have a group number for each burst of data. Any ideas? I'm pretty handy with formula's but haven't done any scripting yet.

Thanks,

Scott

1 ACCEPTED SOLUTION

Accepted Solutions

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Get Direct Link
- Email to a Friend
- Report Inappropriate Content

Try the column formula below. It should give each burst a number from 1 to 10 (if the table is sorted correctly).

If**(** Row**()** == **1**,

**1**,

If**(** Dif**(** :Name**(** "Time (111447_138)" **)**, **1** **)** > **1**,

Lag**(** :Column 4, **1** **)** + **1**,

Lag**(** :Column 4, **1** **)**

**)**

**)**

2 REPLIES 2

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Get Direct Link
- Email to a Friend
- Report Inappropriate Content

Try the column formula below. It should give each burst a number from 1 to 10 (if the table is sorted correctly).

If**(** Row**()** == **1**,

**1**,

If**(** Dif**(** :Name**(** "Time (111447_138)" **)**, **1** **)** > **1**,

Lag**(** :Column 4, **1** **)** + **1**,

Lag**(** :Column 4, **1** **)**

**)**

**)**

Highlighted
##

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Get Direct Link
- Email to a Friend
- Report Inappropriate Content

Re: Grouping measurement runs of different duration

Thanks. That worked great.

I'd never used the Lag function before. Perfect.