returnCountries: Creating a query element for country restraint

View source: R/AggFunctions.R

returnCountriesR Documentation

Creating a query element for country restraint

Description

This function returns a list of countries a user specifies

Usage

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

## 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 Nov. 16, 2022, 2:29 p.m.