spu.indicator.data | R Documentation |
Return a data frame of HIV incidence and prevalence estimates. Uncertainty data in SPU files are sampled from some distribution. Sampling may be done with replacement. Formatted SPU data include a sample id column ("Sample"), the sampling frequency ("Frequency"), and Year. If "wide" output is requested, the dataframe will have columns for HIV prevalence and incidence; if "long" output is requested, the dataframe will have an Indicator and Value columns instead. The SPU data includes the best-fitting incidence and prevalence point estimate. This has sample ID 0 and missing (NA) sampling frequency.
spu.indicator.data(raw.spu, direction = "wide")
raw.spu |
SPU data returned by |
a dataframe in long or wide format
spu = read.raw.spu("Antarctica.PJNZ")
dat = spu.indicator.data(spu, direction="long")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.