DistanceDevelopment / DSsim

Distance Sampling Simulation R Package
1 stars 1 forks source link

Point transect design error #34

Closed LHMarshall closed 7 years ago

LHMarshall commented 7 years ago

The following output is produced when the number of spacing values does not match the number of strata. This can be rectified by ammending the number of spacing values supplied to make.design.


> generate.transects(design, region)
Error in seq.default(start.x, region@box[["xmax"]], by = spacing) : 
  'from' cannot be NA, NaN or infinite
In addition: Warning messages:
1: In runif(1, 0, spacing) : NAs produced
2: In runif(1, 0, spacing) : NAs produced```
LHMarshall commented 7 years ago

Same issue for systematic line transects - now fixed for both.