I kind of stuck on where to start for bootstrap with binary data.

So, I have big numbers of data that consists an acrivity within area. The data will represent just like does the activity is success of failure, represent by 1 for success and 0 for failure.

Example: in area A, we got 12 samples of data where 9 of them are success, so the result is 75%

With so quite number of data has small sanple size, we want to use bootstrap for those data. I have been look so many reference on how to do it. Some of the reference show that we can use rbinom function in R.

From the previous example, I run this in R

rbinom(50, 12, 0.75)

The idea is to run 50 times repetition, each repetition consists 12 trial, with 75% probability

Then we sum the result of the function and simply divide it by 12 x 50 = 600

Honestly, I wondering if it is the right way to do it, any suggestion?

Thanks