# Generate data with the default arguments and look at the structure:
str(data <- simDemoDynocc() ) # Implicit defaults
str(data <- simDemoDynocc(psi1 = 1)) # All sites initially occupied
str(data <- simDemoDynocc(nsites = 1000)) # Plenty more sites
str(data <- simDemoDynocc(nyears = 100)) # Plenty more years
str(data <- simDemoDynocc(nvisits = 20)) # Plenty more visits
str(data <- simDemoDynocc(range.phi = c(0.8, 0.8))) # Constant survival
str(data <- simDemoDynocc(range.phi = c(0.2,0.3), range.r = c(0,0.2))) # Decline
str(data <- simDemoDynocc(range.phi = c(0.8,1), range.r = c(0.5,0.7))) # Increase
str(data <- simDemoDynocc(nvisits = 1)) # Single visit
str(data <- simDemoDynocc(range.p = c(1,1))) # Perfect detection
Run the code above in your browser using DataLab