Skip to content

Commit

Permalink
Make pointsSpatial shared if number datasets is 1
Browse files Browse the repository at this point in the history
  • Loading branch information
PhilipMostert committed Jun 13, 2024
1 parent d7fc987 commit b91175f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions R/specifyMarks.R
Original file line number Diff line number Diff line change
Expand Up @@ -1581,6 +1581,7 @@ specifyMarks$set('private', 'addData', function(dataList, responseCounts, respon
}

}

private$Components <- pointData$makeComponents(spatial = private$Spatial, intercepts = private$Intercepts,
marks = markNames, datanames = dataNames, speciesname = speciesName,
multinomnames = multinomNames, pointcovariates = pointCovariates,
Expand Down
3 changes: 2 additions & 1 deletion R/startMarks.R
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,8 @@ startMarks <- function(..., spatialCovariates = NULL,

}
else initialnames <- NULL


if (length(initialnames) == 1) pointsSpatial <- 'shared'

if (!is.null(temporalName)) temporalModel <- deparse1(list(model = 'ar1'))
else temporalModel <- NULL
Expand Down

0 comments on commit b91175f

Please sign in to comment.