Making a region in "dssd"

11 views
Skip to first unread message

Sarah Morris

unread,
Oct 21, 2021, 11:01:28 AM10/21/21
to distance-sampling
Hello,
I've been trying to create a region or "study area" in the dssd package so that it can analyze my distance sampling detections and transects to get a population estimate and detectability probability. However, I keep getting errors. I've been following this website https://examples.distancesampling.org/dssd-getting-started/GettingStarted-distill.html and here is what comes up when I do the script:

poly1 <- data.frame(x = c(0,0,85000,85000, 0), y = c(0, 97000, 97000, 0, 0))
coords <- list()
coords <- list(poly1)
#survey region
region <- make.region(region.name = "study area",
                      units = "m",
                      coords = "coords")
Error:
Error in make.region(region.name = "study area", units = "m", coords = "coords") : 
  unused argument (coords = "coords")

I have also tried using my shapefile using this script:
Sarah.file <- readOGR("C:/Users/sarah/OneDrive/Documents/Region.area.shp")
wetlands <- system.file("data", "Region.area.shp", package = "dssd")
wetlands <- make.region(region.name = "study area", 
                        shape = Sarah.file)

and this is the error that popped up:
Error in make.region(region.name = "study area", shape = Sarah.file) : 
  The sp data type is not yet supported... coming soon!

I would greatly appreciate it if anyone has any advice or maybe a better way to make a region. 



Eric Rexstad

unread,
Oct 21, 2021, 11:13:18 AM10/21/21
to Sarah Morris, distance-sampling
Sarah

This won't help you read in your shape file, but I want to be clear that dssd​ is not used to analyse data that have been collected in a distance sampling survey.  Rather, dssd​ is to be used to help you design a survey prior to going into the field to collect data.

If you already have collected your data, then you need not use dssd​ and the battle with the shape file is unnecessary.

Can you clarify whether you are designing a survey or analysing collected data?


From: distance...@googlegroups.com <distance...@googlegroups.com> on behalf of Sarah Morris <smor...@leomail.tamuc.edu>
Sent: 21 October 2021 16:01
To: distance-sampling <distance...@googlegroups.com>
Subject: {Suspected Spam} [distance-sampling] Making a region in "dssd"
 
--
You received this message because you are subscribed to the Google Groups "distance-sampling" group.
To unsubscribe from this group and stop receiving emails from it, send an email to distance-sampl...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/distance-sampling/d979512e-7b08-4056-bb48-16916e5e6e62n%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages