write.wtd.pctiles: create lookup table as file of pop-weighted percentiles,...

View source: R/write.wtd.pctiles.R

write.wtd.pctilesR Documentation

create lookup table as file of pop-weighted percentiles, mean, std.dev

Description

create lookup table as file of pop-weighted percentiles, mean, std.dev

Usage

write.wtd.pctiles(mydf, wts, filename)

Arguments

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

Examples

  ## Not run: 
  write.wtd.pctiles(bg22[ , names.e], wts = bg22$pop, filename = 'envt-data')
  
## End(Not run)


ejanalysis/ejanalysis documentation built on April 2, 2024, 10:12 a.m.