Skip to content

truncation argument to ds as string #166

@erex

Description

@erex

If truncation value is specified as a number within quotes, it is treated as a percentage, regardless of whether a percent sign is included.

Minimum reproducible example

library(Distance)
data(wren_lt)
max(wren_lt$distance) # distances range up to 100m
lotsa.trunc <- ds(wren_lt, key="hn", truncation="85") # erroneously attempt to truncate at 85m
> summary(lotsa.trunc)

Summary for distance analysis 
Number of observations :  25 
Distance range         :  0  -  15 

Model : Half-normal key function 
AIC   : 137.4026 

Detection function parameters
Scale coefficient(s):  
            estimate       se
(Intercept) 8.304527 38292.71

                      Estimate        SE        CV
Average p            0.9999977 0.1757829 0.1757833
N in covered region 25.0000574 4.3945984 0.1757835

Metadata

Metadata

Assignees

Type

No type
No fields configured for issues without a type.

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions