decode_bill_text: Decode based64 encoded bill text

Description Usage Arguments Value See Also

View source: R/decode_bill_text.R

Description

Full text of bill documents returned from LegiScan API is encoded in base64. This function detects the document mime type, decodes the texts and turn it as a character vector.

Usage

1
decode_bill_text(bill_text)

Arguments

bill_text

List object or json file containing bill text details, returned from get_bill_text

Value

A data frame of 10 columns, containing all the information returned from API query, with the decoded text attached. See decode bill text vignette for more.

See Also

get_bill_text. Text decoding utilizes R package readtext.


fanghuiz/legiscanrr documentation built on Jan. 13, 2020, 4:51 a.m.