returnCountries: Creating a query element for country restraint

Description Usage Arguments Value Examples

View source: R/AggFunctions.R

Description

This function returns a list of countries a user specifies

Usage

1
returnCountries(table_name = " ", country = list())

Arguments

table_name

A name of a data table. Input strings are NOT case-sensitive.

country

A list of countries. We recommend to use the ISO ALPHA-3 Code format, but a full country name is also working in this function.
Several countries should be entered in the list() format. e.g. either list("USA","CAN") or list("United States", "Canada") are working and it is case-insensitive.

Value

A list of countries

Examples

1
2
3
## Not run: # to have a query of the United States and Canada as a country restraint
ctr <- returnCountries("phoenix_rt", list("USA","CAN"))
## End(Not run)

KateHyoung/UTDEventData documentation built on March 15, 2019, 7:42 p.m.