Creates pages by filter (e.g. by department/profession/grade).
1 2 3 4 5 6 7 | render_filtered_pages(
data,
filter_variable,
page_title = "",
output_folder = "../../docs",
template_path = "rmarkdown/summary_template/template.rmd"
)
|
data |
This is generated using the carsurvey2::data_ functions. |
filter_variable |
The variable that the data is filtered on. This is given as a string such as "dept". The data is filtered by getting all values in the filter_variable greater than 20 and subsetting the data. |
page_title |
This is ONLY PART of the title. page_title , " profile: ", filter – where filter is one element of the list as described above in filter_variable (values over 20) and the page title is this argument. |
output_folder |
Folder the site is built and saved to |
template_path |
The path to the template that gets render for each department |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.