View source: R/table_profile.R
table_profile | R Documentation |
Summarize profile results of parameters
table_profile(summarylist, pargrep)
summarylist |
A list of summarized Report.sso files. |
pargrep |
A character value to search for using grepl on the column
|
Kelli F. Johnson
## Not run:
# Read in models
profilemodels <- SSgetoutput(
dirvec = mydir,
keyvec = 1:((dir(mydir,pattern="^Report") %>% length)-1)
)
# Summarize output
profilesummary <- SSsummarize(profilemodels)
table_profile(profilesummary, pargrep = "NatM") %>%
knitr::kable(
format = "latex",
align = "r",
position = "H",
digits = 3,
booktabs = TRUE,
longtable = FALSE,
caption = "Parameter estimates of natural mortality, $M$, from the likelihood profile over $M_{female}$ showing the correlation between the two parameters.",
label = "profile-M",
escape = FALSE,
linesep = ""
) %>%
kableExtra::save_kable(
file = file.path(profilemodels$replist1$inputs$dir, "profile-M.tex")
)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.