setFormat-methods: LegiScan Constructor Methods - setFormat

Description Usage Arguments Value See Also Examples

Description

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

Constructor method for setting the format slot of a LegiScan class object

Usage

1
2
3
4
setFormat(legiscan, json)

## S4 method for signature 'LegiScan,logical'
setFormat(legiscan, json)

Arguments

legiscan

An object of class LegiScan

json

A logical indicating if the format slot should be JSON or XML

Value

Returns the LegiScan class object with user specified format slot

See Also

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

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

Examples

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

# Sets format slot to JSON
setFormat(myLegiScan, TRUE)

# Sets format slot to XML
setFormat(myLegiScan, FALSE)

## End(Not run)

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