GetDeepSearchResults_dataframe: Get the 'Deep Search' results from the Zillow API for a...

Description Usage Arguments Value Examples

View source: R/GetDeepSearchResults_dataframe.R View source: R/R/GetDeepSearchResults_dataframe.R

Description

A wrapper for GetDeepSearchResults that takes data frames with address information as inputs rather than a single address, and returns the search results for all addresses

Usage

1
2
3
GetDeepSearchResults_dataframe(.df, col.address, col.zipcode = NULL,
  col.city = NULL, col.state = NULL, rentzestimate = F, api_key,
  raw = FALSE)

Arguments

.df

a dataframe with address data

col.address

a numeric value specifying which column in .df contains the addresses

col.zipcode

a numeric value specifying which column contains the zipcodes (required if no city/state information)

col.city

a numeric value specifying which column contains the city (required if no zipcode information)

col.state

a numeric value specifying which column contains the state abbrev. (required if no zipcode information)

rentzestimate

if TRUE, additional zestimates for rental prices are returned.

api_key

a character string specifying the unique Zillow API key

raw

logical, if TRUE, a list with raw XML documents (i.e., the original ZillowR call) for each property in the data frame is returned

Value

A data frame with columns corresponding to address, property, and Zestimate information

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
## Not run: 
zapi_key = getOption('ZillowR-zws_id')

adrs <- c('733 Normandy Ct', '600 South Quail Ct','2902 Wood St', '3425 Locust St.')

locations <- data.frame(address=adrs,zipcode=c('67114','67114','50014', '64109'),
state=c("KS","KS","IA","MO"), city=c("Newton","Newton","Ames","Kansas City"))

GetDeepSearchResults_dataframe(locations, col.address=1, col.zipcode=2,
col.city=4, col.state=3,api_key=zapi_key)


## End(Not run)

stharms/realEstAnalytics.r documentation built on May 14, 2019, 1:57 a.m.