Skip to content

Commit

Permalink
fix(table_pars.R) extra space, capitalization
Browse files Browse the repository at this point in the history
- Develop shared functions for making tables #78
  • Loading branch information
iantaylor-NOAA committed Mar 10, 2023
1 parent 36d1567 commit 4615ff1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion R/table_pars.R
Original file line number Diff line number Diff line change
Expand Up @@ -92,10 +92,11 @@ table_pars <- function(output,
dplyr::select(Label, Value, Phase, Min, Max, Pr_type, Prior, Parm_StDev, Pr_SD, Status) %>%
dplyr::mutate(
Value = sprintf("%8.3f", Value),
Bounds = sprintf("(%8.3f, %8.3f)", Min, Max),
Bounds = sprintf("(%8.3f, %8.3f)", Min, Max) %>% stringr::str_replace("\\(\\s+", "("),
Status = dplyr::case_when(
is.na(Status) ~ "fixed",
Status == "act" ~ "dev",
Status == "OK" ~ "ok",
TRUE ~ Status
),
SD = ifelse(is.na(Parm_StDev), "0", sprintf("%2.2f", Parm_StDev)),
Expand Down

0 comments on commit 4615ff1

Please sign in to comment.