Skip to content
Back to formatted view

Raw Message

Message-ID: <1329592151306-4400267.post@n4.nabble.com>
Date: 2012-02-18T19:09:11Z
From: maris478
Subject: Counting value changes

Good afternoon, 
I've encountered a little bit of a problem, would appreciate any help here.

I made a small vector consisting of ones and zeros. 
Something like this x <- c(0,1,0,1,0,0,1,0), and all I need is to count how
many times "0" becomes "1". 
Tried various, of what I thought, methods with built in functions. Didn't
get any further.

Thank you very much.

--
View this message in context: http://r.789695.n4.nabble.com/Counting-value-changes-tp4400267p4400267.html
Sent from the R help mailing list archive at Nabble.com.