R/europepmc.R
europepmc_parse_count.Rd
Pure. 0 is a real count and comes back as 0L; only an absent hitCount is NA.
0
0L
hitCount
NA
europepmc_parse_count(body)
A parsed Europe PMC search response.
search
A single integer, or NA_integer_.
NA_integer_
europepmc_parse_count(list(hitCount = 2530)) #> [1] 2530 europepmc_parse_count(list(hitCount = 0)) #> [1] 0