Description Usage Arguments Details Value See Also Examples
Check a time series (matrix) for returned data and metadata.
1 2 3 4 | hasData(x, quiet=FALSE)
hasDataCount(x)
hasDataNames(x)
hasDataDescriptions(x)
|
x |
A time series (matrix) as returned by |
quiet |
Suppress warnings and just return the logical result. |
These functions check data returnded from SDMX databases such as Eurostat to verify if data and metadata has been returned by a query specification. This is a useful check because wildcard specifications may often result in no data being returned.
hasData returns a logical vector, one element for each series in x, indication TRUE if there is numeric data in that series or FALSE if all
the data in the series is NA or NaN. If quiet=FALSE (the default)
then a warning is issued for each series that has completely missing data.
hasDataCount prints a count of the number of series with actual data, and returns
the number (invisibly).
hasDataNames returns the names of series with actual data.
hasDataDescriptions returns the descriptions of series with actual data.
Depends.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | ## Not run:
require("TSsdmx")
eurostat <- TSconnect("sdmx", dbname="EUROSTAT")
# 28 series, 23 with data
z <- TSget("ei_nama_q.Q.MIO-EUR.NSA.CP.*.IT", eurostat)
sum(hasData(z, quiet=TRUE))
hasDataCount(z)
hasDataNames(z)
hasDataDescriptions(z)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.