how to use R script code to count negative for continuous 2 months?

Hi all

At R Script how to make R code to count this?

If the customer have negative for continuous 2 months, will automatic show how many days.No matter on which day, as long as continuous 2 months.

example 1: kent continuous already exceed 2 months (negative) , he total got 6 months (negative). then automatic show me 6...

example 2: ABBY total got 5 months (negative), but she is not continuous 5 months (negative), so just show me 0

Hi!

To help us help you, could you please prepare a reproducible example (reprex) illustrating your issue? Please have a look at this guide, to see how to create one:

Hi

Actually I don know use R , so see who can help with this project

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.