Hello,

 

I am a beginner in R programming and recently heard about this mailing list.
Currently, I am trapped into a simple problem for which I just can't find a
solution. I have a huge dataset (~81,000 observations) that has been
analyzed and the final result is in the form of 0 and 1(one column). 

 

I need to write a code to process this column in a little complicated way. 

These 81,000 observations are actually 9,000 sets (81,000/9). 

So, in each set whenever zero appears, rest all observations become zero.

 

For example;

If the column has: 

111110111111011111111111111111111....

The output should look like: 

111110000111000000111111111111111...

 

I hope this makes sense.

 

Thank you in anticipation,

 

Pravin

 

Pravin Jadhav

 


	[[alternative HTML version deleted]]


