my code to create the inputs and generate the abundances for my doctoral research. I am using R package 'unmarked' and the gdistsamp function.