Description Usage Arguments Value Examples
Extract number of closed dwells. In the case of subconductive states, a dwell is only closed if the conductance is exactly zero.
1  | segment.count_closed(segment)
 | 
segment | 
 the segment object  | 
number of closed dwells
1 2 3 4 5 6  | # It's more likely that you created states or dwells with some function
states  <-  c(0,      1,    0,    1,    0,    1,    0,    1,    0,    1)
dwells  <-  c(0.1,  1.1,  0.5,  0.2,  1.0,  1.1,  0.6,  1.1,  0.8,  1.1)
my_burst <- segment.create(states, dwells, seg=1, start_time=3.14159, name="example_segment")
segment.count_closed(my_burst)
 | 
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.