Searches the CDC data portal catalog to discover available datasets. Uses the Socrata Discovery API to find datasets by keyword.
Arguments
- query
Character. Search terms to find datasets. If
NULL, returns recent/popular datasets.- category
Character. Filter by category (e.g., "Health Statistics", "Vaccination"). Case-insensitive partial matching.
- limit
Integer. Maximum number of results (default 20, max 100).
- only_datasets
Logical. If
TRUE(default), excludes maps, charts, and other non-tabular resources.
Value
A data.frame with columns:
id: Dataset identifier for use withcdc_query()name: Dataset titledescription: Brief descriptioncategory: Dataset categorytags: Comma-separated list of tagsupdated_at: Last update timestamprows: Approximate row count (if available)url: Direct link to dataset page