getgeogroup: Returns the geo-to-geo group mapping.

Description Usage Arguments Value Note

Description

Returns the geo-to-geo group mapping.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
GetGeoGroup(obj, geo = NULL, ...)

## S3 method for class 'GeoAssignment'
GetGeoGroup(obj, geo = NULL, ...)

## S3 method for class 'GeoExperimentData'
GetGeoGroup(obj, geo = NULL, ...)

## S3 method for class 'GeoStrata'
GetGeoGroup(obj, geo = NULL, ...)

Arguments

obj

an object with the columns 'geo' and 'geo.group'.

geo

(character vector or NULL) names of geos for which to obtain the geo group ids.

...

other arguments passed on to the methods.

Value

A named integer-valued vector, with the geo names in the names attribute, mapping geos to geo group ids.

Note

If a specified 'geo' does not exist in the GeoAssignment object, the corresponding geo group will be an NA.


google/GeoexperimentsResearch documentation built on May 17, 2019, 7:42 a.m.