search for: liveanim

Displaying 1 result from an estimated 1 matches for "liveanim".

2008 Jan 15
1
Population model question
...imals in the pop. Years <- 100 ## years in the simulation Live.Animals[,yy] <- ifelse ((runif(MaxAnimals,0,1) < sur.age) & Live.Animals[,yy-1], TRUE, FALSE) ## Live.Animals [,yy-1] : Animal had to be alive the year before ## sur.age : survival of each age class Now, the array LiveAnimals is filled throughout the years with more and more animals surviving( "TRUE") (and being born but those formulae are not in this post) My question is : How do I arbitrarily assign the animals being "FALSE" ***according to the uniformal chance generation*** to the array Dead.An...