I would like to add observation based on certain criteria.
For example:
SN Species Habitat X_Cor Y_cor Total
1 monkey grassland 4444 6666 6
2 porcupine agri_Land 6666 5555 20
I would like to add observation up to 60 times. In above, the first observation is to be repeated 54 times (60-5), with value in "Total" 0. The second observation is to be repeated 40 times (60-20).
Furthermore,
I want to repeate first observation six times (because there is 6 in "Total").
I have 590 such observation. I would like to know how to code it in R.