setUrl-methods: LegiScan Constructor Methods - setUrl

Description Usage Arguments Value Note See Also Examples

Description

Generic constructor method for setting the urlBase slot of a LegiScan class object

Constructor method used for setting the urlBase slot of a LegiScan class object

Usage

1
2
3
4
setUrl(legiscan)

## S4 method for signature 'LegiScan'
setUrl(legiscan)

Arguments

legiscan

An object of class LegiScan

Value

Returns the LegiScan class object with prespecified url string

Note

The URL string set by this method is "http://api.legiscan.com/?key="

See Also

Other LegiScan Constructor Generics: setAPI, setAPI,LegiScan,character,missing-method, setAPI,LegiScan,missing,character-method, setAPI,LegiScan,missing,missing-method; setFormat, setFormat,LegiScan,logical-method

Other LegiScan Constructor Methods: setAPI, setAPI,LegiScan,character,missing-method, setAPI,LegiScan,missing,character-method, setAPI,LegiScan,missing,missing-method; setFormat, setFormat,LegiScan,logical-method

Examples

1
2
3
4
5
6
7
8
## Not run: 
# Create object of class LegiScan
myLegiScan <- legiscanR()

# Set the URL slot of the LegiScan object
setUrl(myLegiScan)

## End(Not run)

wbuchanan/legiscanR documentation built on May 4, 2019, 2:01 a.m.