Converts the result of a FinBIF query to a data.frame
.
Usage
# S3 method for finbif_records
as.data.frame(x, ..., locale = getOption("finbif_locale"))
# S3 method for finbif_records_list
as.data.frame(x, ..., locale = getOption("finbif_locale"), quiet = TRUE)
Arguments
- x
A
finbif_records*
object.- ...
Additional arguments. Not used.
- locale
Character. A locale to use for columns with localised data.
- quiet
Logical. If
TRUE
(default) suppress progress indicator of conversion.
Examples
if (FALSE) {
# Download the latest records from FinBIF
# and convert to a `data.frame`
resp <- finbif_records()
df <- as.data.frame(resp)
}