Re: [R] exclude columns with at least three consecutive zeros

2011-10-12 Thread William Dunlap
elp-boun...@r-project.org] On > Behalf Of Samir Benzerfa > Sent: Wednesday, October 12, 2011 8:35 AM > To: r-help@r-project.org > Subject: [R] exclude columns with at least three consecutive zeros > > Hi everyone, > > > > I have a large data set with about 3'0

[R] exclude columns with at least three consecutive zeros

2011-10-12 Thread Samir Benzerfa
Hi everyone, I have a large data set with about 3'000 columns and I would like to exclude all columns which include three or more consecutive zeros (see below example). A further issue is that it should just jump NA values if any. How can I do this? In the below example R should exclude col