View source: R/write.wtd.pctiles.R
write.wtd.pctiles | R Documentation |
create lookup table as file of pop-weighted percentiles, mean, std.dev
write.wtd.pctiles(mydf, wts, filename)
mydf |
data.frame with numeric data. Each column will be examined to calculate mean, sd, and percentiles |
wts |
vector of numbers such as population counts as weights, as long as nrow(mydf) |
filename |
prefix to use for filename to be saved locally |
## Not run:
write.wtd.pctiles(bg22[ , names.e], wts = bg22$pop, filename = 'envt-data')
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.