# define a species with two states
twostatespecies <- species(state.RW() + state.CRW(0.9)
, transitionMatrix(0.01, 0.02))
# set the perception window radius of both states to 200
# and the step length to 10
twostatespecies <- twostatespecies * 200 + 10
Run the code above in your browser using DataLab