Skip to content

Commit

Permalink
submission cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewmarx committed Jul 5, 2024
1 parent dd60d4d commit 802d6fb
Show file tree
Hide file tree
Showing 7 changed files with 12 additions and 10 deletions.
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ Imports:
raster,
terra (>= 1.7-3),
circular
RoxygenNote: 7.2.3
RoxygenNote: 7.3.2
Suggests: knitr,
rmarkdown,
testthat,
Expand Down
2 changes: 1 addition & 1 deletion R/cond_passage.R
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ NULL
#' @template section-perf
#'
#' @template param-samc
#' @param init Placeholder/not currently implemented.
#' @template param-init
#' @template param-origin
#' @template param-dest
#'
Expand Down
4 changes: 2 additions & 2 deletions R/distribution.R
Original file line number Diff line number Diff line change
Expand Up @@ -120,8 +120,8 @@ setMethod(

res = diag(pv) %*% res

res = apply(res, 1, function(x) samc:::.summarize_crw(samc_crw, x, sum))
res = apply(res, 1, function(x) samc:::.summarize_crw(samc_crw, x, sum)) # Same margin because results of last are transposed
res = apply(res, 1, function(x) samc:::.summarize_crw(samc, x, sum))
res = apply(res, 1, function(x) samc:::.summarize_crw(samc, x, sum)) # Same margin because results of last are transposed
}

return(res)
Expand Down
4 changes: 2 additions & 2 deletions R/mortality.R
Original file line number Diff line number Diff line change
Expand Up @@ -178,8 +178,8 @@ setMethod(

bt = diag(pv) %*% bt

bt = apply(bt, 1, function(x) samc:::.summarize_crw(samc_crw, x, sum))
bt = apply(bt, 1, function(x) samc:::.summarize_crw(samc_crw, x, sum)) # Same margin because results of last are transposed
bt = apply(bt, 1, function(x) samc:::.summarize_crw(samc, x, sum))
bt = apply(bt, 1, function(x) samc:::.summarize_crw(samc, x, sum)) # Same margin because results of last are transposed
}

return(bt)
Expand Down
1 change: 1 addition & 0 deletions R/samc-class.R
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,7 @@ NULL
#' @slot nodes The number of nodes in the graph
#' @slot map Used to verify landscape inputs and mapping of vector data
#' @slot crw_map Matrix used to map location and direction to edges description
#' @slot prob_mat Matric for CRW probabilities
#' @slot names Names of the transient states
#' @slot clumps Number of discontinuous regions in data
#' @slot override Used to prevent accidental use of memory intensive functions
Expand Down
1 change: 1 addition & 0 deletions R/survival.R
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ NULL
#'
#' @template param-samc
#' @template param-init
#' @template param-origin
#'
#' @return See Details
#'
Expand Down
8 changes: 4 additions & 4 deletions R/visitation.R
Original file line number Diff line number Diff line change
Expand Up @@ -174,8 +174,8 @@ setMethod(

res = diag(pv) %*% res

res = apply(res, 1, function(x) samc:::.summarize_crw(samc_crw, x, sum))
res = apply(res, 1, function(x) samc:::.summarize_crw(samc_crw, x, sum)) # Same margin because results of last are transposed
res = apply(res, 1, function(x) samc:::.summarize_crw(samc, x, sum))
res = apply(res, 1, function(x) samc:::.summarize_crw(samc, x, sum)) # Same margin because results of last are transposed
}

return(res)
Expand Down Expand Up @@ -326,8 +326,8 @@ setMethod(

n = diag(pv) %*% n

n = apply(n, 1, function(x) samc:::.summarize_crw(samc_crw, x, sum))
n = apply(n, 1, function(x) samc:::.summarize_crw(samc_crw, x, sum)) # Same margin because results of last are transposed
n = apply(n, 1, function(x) samc:::.summarize_crw(samc, x, sum))
n = apply(n, 1, function(x) samc:::.summarize_crw(samc, x, sum)) # Same margin because results of last are transposed
}

return(n)
Expand Down

0 comments on commit 802d6fb

Please sign in to comment.