birds <- read.csv("E:/Troubleshoot/Arapaho/songbirds.csv", header=TRUE)
birds80 <- birds[birds$Year==1980, ]
table(birds$species, birds$Region.Label)
regtab <- data.frame(Region.Label=unique(birds80$Region.Label),
Area=rep(1,3))
p1.stns <- c(seq(1:110), seq(112, 122, by=2), seq(150, 156, by=2))
p2.stns <- seq(1:125)
p3.stns <- c(seq(1:4), seq(6, 25, by=1), seq(27, 125, by=1))
samtab <- data.frame(Sample.Label=c(p1.stns, p2.stns, p3.stns) ,
Region.Label=c(rep("1980_1", length(p1.stns)),
rep("1980_2", length(p2.stns)),
rep("1980_3", length(p3.stns))) ,
Effort=1)
obstab <- data.frame(object=birds80$Observation,
Region.Label=birds80$Region.Label,
Sample.Label=birds80$Sample.Label)
cu <- convert_units("meter", NULL, "hectare")
sasp <- birds80[birds80$species=='SASP', ]
# obstab <- data.frame(object=sasp$Observation,
# Region.Label=sasp$Region.Label,
# Sample.Label=sasp$Sample.Label)
hncos <- ds(sasp, key="hn", transect="point",
convert_units = cu,
region_table = regtab, sample_table = samtab,
obs_table = obstab)
Trying to assess variance components table added to
dhtin this branch.Savannah_sparrow_1980as test case.region.table,sample.table,obs.tablebecause multispecies data frame was going to be subsetdhtcomponents tableSavannah_sparrowhas multiple stratasample.tableminkenumbers transects across strata (does not begin numbering again at 1)amakihidoes number transects starting at 1 for each stratum (temporal replicate survey as stratum)Note the data issue has been resolved, see next comment
songbirds.csv