From 408311fb7061e66d207b7f3a8dfb94b3b7e1351c Mon Sep 17 00:00:00 2001 From: Sean Anderson Date: Thu, 19 Oct 2023 11:32:28 -0700 Subject: [PATCH] Shorten example --- R/gather-spread.R | 5 ++--- man/gather_sims.Rd | 5 ++--- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/R/gather-spread.R b/R/gather-spread.R index 451fa510b..e303efac4 100644 --- a/R/gather-spread.R +++ b/R/gather-spread.R @@ -24,9 +24,8 @@ #' * columns for each parameter with a sample per row #' #' @examples -#' m <- sdmTMB(density ~ 0 + depth_scaled + depth_scaled2, -#' data = pcod_2011, mesh = pcod_mesh_2011, family = tweedie(), -#' spatiotemporal = "AR1", time = "year") +#' m <- sdmTMB(density ~ depth_scaled, +#' data = pcod_2011, mesh = pcod_mesh_2011, family = tweedie()) #' head(spread_sims(m, nsim = 10)) #' head(gather_sims(m, nsim = 10)) #' samps <- gather_sims(m, nsim = 1000) diff --git a/man/gather_sims.Rd b/man/gather_sims.Rd index 59008176c..1e74cfe3c 100644 --- a/man/gather_sims.Rd +++ b/man/gather_sims.Rd @@ -36,9 +36,8 @@ long-format data frame. The format matches the format in the \pkg{tidybayes} \code{spread_draws()} and \code{gather_draws()} functions. } \examples{ -m <- sdmTMB(density ~ 0 + depth_scaled + depth_scaled2, - data = pcod_2011, mesh = pcod_mesh_2011, family = tweedie(), - spatiotemporal = "AR1", time = "year") +m <- sdmTMB(density ~ depth_scaled, + data = pcod_2011, mesh = pcod_mesh_2011, family = tweedie()) head(spread_sims(m, nsim = 10)) head(gather_sims(m, nsim = 10)) samps <- gather_sims(m, nsim = 1000)