powered by
Downloads and returns the current registry of health plan operators from the ANS open data portal. This is a snapshot of the current operator status (not time-series data).
ans_operators(status = "active", vars = NULL, cache = TRUE, cache_dir = NULL)
A tibble with operator data. When status = "all", includes a status column indicating "active" or "cancelled".
status = "all"
status
Character. Filter by operator status:
"active": Active operators only (default).
"active"
"cancelled": Cancelled operators only.
"cancelled"
"all": Both active and cancelled.
"all"
Character vector. Variables to keep. If NULL (default), returns all 20 variables. Use ans_variables(type = "operators") to see available variables.
ans_variables(type = "operators")
Logical. If TRUE (default), caches downloaded data.
Character. Directory for caching.
Other ans: ans_cache_status(), ans_clear_cache(), ans_data(), ans_info(), ans_variables(), ans_years()
ans_cache_status()
ans_clear_cache()
ans_data()
ans_info()
ans_variables()
ans_years()
if (FALSE) { # interactive() # active operators ops <- ans_operators() # all operators (active + cancelled) all_ops <- ans_operators(status = "all") }
Run the code above in your browser using DataLab