gr_kable_tests | R Documentation |
This function is used to represent the results of gr_test_vars()
in a tabular form. Used mainly in gr_report()
, but can be used for your own purposes.
gr_kable_tests(tests, format = "html")
tests |
|
format |
Character string encoding the type of output. Currently |
HTML table as returned by knitr::kable()
function.
if (require("kableExtra")) {
library(grwat)
data(spas) # example Spas-Zagorye data is included with grwat package
# separate
sep = gr_separate(spas, params = gr_get_params(reg = 'center'))
# summarize from 1965 to 1990
vars = gr_summarize(sep, 1965, 1990)
# test all variables
tests = gr_test_vars(vars)
# kable tests
gr_kable_tests(tests)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.