D
Demosthenes
For example, suppose you have the following data:
P
S
S
P
S
S
S
P
S
S
and you want to count how many "S"s repeat after each "P." That is, you're
looking for output:
"2s" = 2
"3s" = 1
Is there any way to write a function to do that?
P
S
S
P
S
S
S
P
S
S
and you want to count how many "S"s repeat after each "P." That is, you're
looking for output:
"2s" = 2
"3s" = 1
Is there any way to write a function to do that?