Opens an interactive HTML interface to explore disease groups and climate factors
for use with sus_data_filter_cid().
Usage
sus_filter_cid_explore(
lang = "pt",
output = "browser",
filter_climate = FALSE,
verbose = TRUE
)Arguments
- lang
Character string specifying language. Options:
"pt"(Portuguese, default),"en"(English),"es"(Spanish).- output
Character string specifying output format. Options:
"browser"- Interactive HTML in web browser (default)"console"- Simple list in R console
- filter_climate
Logical. If
TRUE, shows only climate-sensitive diseases.- verbose
Logical. If
TRUE(default), prints informative messages.
Value
Depending on output:
"browser": Opens HTML interface, returns invisible data.frame"console": Prints summary, returns invisible data.frame
Details
This function helps users discover available disease groups without needing to know specific ICD-10 codes. The interactive interface allows:
Multi-select disease groups (Ctrl/Cmd + Click)
Filter by climate factors (temperature, precipitation, etc.)
Copy group names for use in
sus_data_filter_cid()View ICD-10 codes and descriptions
Examples
if (FALSE) { # \dontrun{
# Open interactive explorer
sus_filter_cid_explore()
# Explore only climate-sensitive diseases
sus_filter_cid_explore(filter_climate = TRUE)
# Get disease group names for programmatic use
groups <- sus_filter_cid_explore(
lang = "pt"
)
# Use in sus_data_filter_cid
data <- sus_data_filter_cid(
df = my_data,
disease_group = groups[1]
)
} # }