I want to know how many values are different from 1 in my dataframe.
My input is like:
simulation, day, reliability
1, 1, 0.999
1, 2, 0.999
1, 3, 0.999
2, 1, 1
2, 2, 0.999
2, 3, 1
3, 1, 0.98
3, 2, 0.98
3, 3, 1
And the output should be like:
day, counter
1, 2
2, 3
3, 1
Many thanks in advance!
question from:https://stackoverflow.com/questions/65843381/i-want-to-obtain-the-values-of-reliability-1-by-day-in-r