getpctmin: Example of Calculating Percent Minority if Raw Counts...

View source: R/getpctmin.R

getpctminR Documentation

Example of Calculating Percent Minority if Raw Counts Available

Description

This is only an example & only useful if you already have x data in the proper format, as from UScensus2010. It is a simple example of calculating a derived variable from raw counts if those have been obtained.

Usage

getpctmin(x)

Arguments

x

Dataset of blocks data that must be in data within x and must have fields P0050003 and P0010001

Value

Would be a vector as long as P0010001

See Also

UScensus2010

Examples

# Example of how to get calculated variable like pctmin from delaware.blk10, or other data
# from package called UScensus2010blk
# (not from this UScensus2010blocks package):
## Not run: 
   require(UScensus2010)
   install.blk("osx")  # if on OSX
   data("delaware.blk10")
   x=delaware.blk10
   #  pctmin <- getpctmin(x)
   # hist(pctmin, 100)

## End(Not run)

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