Displaying 1 result from an estimated 1 matches for "posduration".
Did you mean:
o_duration
2009 Jul 07
2
rle
...rnation of
1 and -1 that corrispond to the duration of two different percepts. I
extracted the durations like this:
signData<- scan("dataTR10.txt")
dur<-rle(signData)$length
Now I would like to extract only the positive duration, e.g.
signData <- c(1,1,1,1,-1,-1,-1,1,1,-1,-1)
posduration <- c(4,2)
I think I should use rle in a nested way, this is what I tried but it
doesn't work:
posduration<- rle(signData[=1])$length
Could you please help me?
Thanks a lot, this forum is extremely useful.
Ale
--
View this message in context: http://www.nabble.com/rle-tp24371336p243...