tableVar: Searching the variables in a particular data table

Description Usage Arguments Value Examples

View source: R/SearchFunctions.R

Description

Searching the list of variables in the data table a user specifies. It returns variable names and requires an API key.
You can also look up a particular word of variabla names such as "day", "month", or "src" so that you can find whether or not a specified data table has the certain variables you need.
The API key can be obtained after submitting the form in the UTD event data sign-up website (http://eventdata.utdallas.edu/signup). Please follow the direction in the UTD sign-up webpage.
You can also use this function through the reference class, Table(). Please find the help document of the Table() function for more details of its usage.

Usage

1
tableVar(api_key = " ", table = " ", lword = " ")

Arguments

api_key

an API key from the developer at UTD

table

a specific data table a user wants to explore its variables

lword

a look-up word for a particular variable name you need

Value

A list of variable names of the specified data table

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
# when searching the variables in Phoenix_RT
tableVar(api_key="...", table="phoenix_rt")

# when searhing the variable which includes the word of "tar" in ICEWS
tableVar(api_key="...", table="icews", lword="tar")

# a simple way of applying an API key
k <- "api_key"
tableVar(k, table="phoeni_rt")
tableVar(k, table="icews", lword="tar")

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