# Run a simulation with the default arguments and look at the results:
playRN()
# \donttest{
# Execute the function using various settings
playRN(M = 100, J = 3, mean.abundance = 0.1) # Increasing abundance
playRN(M = 100, J = 3, mean.abundance = 1)
playRN(M = 100, J = 3, mean.abundance = 5)
playRN(M = 100, J = 3, mean.detection = 0.3) # Increasing detection
playRN(M = 100, J = 3, mean.detection = 0.5)
playRN(M = 100, J = 3, mean.detection = 0.7)
playRN(M = 100, J = 20) # More visits
playRN(M = 1000, J = 3) # More sites
# }
Run the code above in your browser using DataLab