Skip to content

Commit 2ecf029

Browse files
author
Stephanie Owen
committed
run edabutilities vignettes with changes
1 parent 6b126f0 commit 2ecf029

2 files changed

Lines changed: 14 additions & 5 deletions

File tree

data-raw/scripts/old scripts/test_indicators.R

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -47,15 +47,24 @@ range <- species_range(data = data, species)
4747
###CONDITION
4848

4949
ecodata_condition <- ecodata::condition
50-
condition <- species_condition(
51-
data = data$survdat,
50+
condition <- NEesp2::species_condition(
51+
data = survdat$survdat,
5252
LWparams = NEesp2::LWparams,
5353
species.codes = NEesp2::species.codes,
5454
by_EPU = TRUE,
5555
by_sex = FALSE,
56-
length_break = NULL,
57-
output = "soe"
56+
length_break = c(0, 15),
57+
output = "full"
5858
)
59+
60+
bsb_15 <- condition |>
61+
dplyr::filter(Species == "Black sea bass") |>
62+
dplyr::rename(DATA_VALUE = MeanCond)
63+
64+
NEesp2::plot_condition(data = bsb_15,
65+
var = "Black sea bass",
66+
return = TRUE)
67+
5968
pkgdown::build_site()
6069

6170
###SPATIAL

vignettes/using_edab_utils.Rmd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ dd <- EDABUtilities::make_2d_deg_day_ts(data.in = c(here::here('data-raw','glory
120120
'01750', '01760'),
121121
ref.value = 14,
122122
type = 'above',
123-
statistic = 'nd',
123+
metric = 'nd',
124124
write.out = F)
125125
126126
dd_df = dplyr::bind_rows(dd)

0 commit comments

Comments
 (0)