Returns the number of rows in a dataset (or matching a filter). Useful for checking dataset size before fetching.
Arguments
- dataset_id
Character. The unique dataset identifier (e.g., "swc5-untb" for PLACES data). You can find this in the dataset URL or via
cdc_datasets().- where
Character. SoQL WHERE clause for filtering rows. Example:
"year = '2023' AND stateabbr = 'MN'"- ...
Arguments passed to
cdc_query()