I have a table where column A is trials, and the remaining columns are successes on different steps. Row C is a control, and row T is a test.

```
A B C D E F G
C 19144 2537 2395 2366 2310 2256 2234
T 19133 2269 2058 2032 2007 1960 1942
```

I want to perform a prop.test comparing control versus test for each step (С vs T for B; С vs T for C, С vs T for В and so on). 6 steps in total. I want to save p-value for each step in a third row.

Is there a way to compute a p-value for each step without writing a prop.test code 6 times for each step?