Skip to contents

Pure. 0 is a real count and comes back as 0L; only an absent hitCount is NA.

Usage

europepmc_parse_count(body)

Arguments

body

A parsed Europe PMC search response.

Value

A single integer, or NA_integer_.

Examples

europepmc_parse_count(list(hitCount = 2530))
#> [1] 2530
europepmc_parse_count(list(hitCount = 0))
#> [1] 0