Dear members,
I apologize for the relatively simple request, but I couldn't find exactly
what I was looking for. I have a binary vector [1,0] representing
presence/absence at 1 second intervals over length(N). I would like to
convert this to a new time series vector with N/60 elements that
Hi mac,
Try
N - 6000
x - sample(1:0, N, TRUE)
tapply(x, rep(1:(N/60), each = 60), sum)
HTH,
Jorge
On Sat, May 21, 2011 at 1:59 PM, andyjmac wrote:
Dear members,
I apologize for the relatively simple request, but I couldn't find exactly
what I was looking for. I have a binary vector
2 matches
Mail list logo