PostcodeMap: Map postcodes to coordinates Returns and save...

View source: R/Init.r

PostcodeMapR Documentation

Map postcodes to coordinates Returns and save 'postcode2coord.RData' a data frame that maps the postcodes included in rownames(matrix) to geographical coordinates. matrix can be a Matrix or a sparseMatrix object storing baseline or observation data. Requires the all postcode data tabulated in a data.frame called postcode.data available in the workspace.

Description

Map postcodes to coordinates Returns and save 'postcode2coord.RData' a data frame that maps the postcodes included in rownames(matrix) to geographical coordinates. matrix can be a Matrix or a sparseMatrix object storing baseline or observation data. Requires the all postcode data tabulated in a data.frame called postcode.data available in the workspace.

Usage

PostcodeMap(matrix, postcode.field = "postcode")

Arguments

matrix

A Matrix or sparseMatrix.

Value

A data.frame.

Examples

postcode2coord = PostcodeMap(observation.matrix)

mcavallaro/rancovr documentation built on April 17, 2025, 7:21 p.m.