testpoints_block2010: Get lat lon for random US census blocks (where avg person...

View source: R/testpoints_block2010.R

testpoints_block2010R Documentation

Get lat lon for random US census blocks (where avg person lives or other weighting)

Description

Note the 2010 version of this is not optimized for speed- it can take 30 seconds to pick just 1,000 points if pop wtd. May recode this to allow wts to be pop (using blocks.pop), or area (using blocks.area), or none (no weight).

Usage

testpoints_block2010(size, popwtd = TRUE)

Arguments

size

number of unique test points needed (no duplicates will be returned)

popwtd

default is TRUE, and pop weighted block points represent where the avg US resident lives. If FALSE, unweighted, so each block has equal chance of being selected.

Details

This is probably obsolete at this point.

Value

data.frame with columns lon and lat, in decimal degrees


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