as.data.frame.finbif_records: Coerce a finbif_records* object to a 'data.frame'

Description Usage Arguments Value Examples

View source: R/methods.R

Description

Converts the result of a FinBIF query to a data.frame.

Usage

1
2
3
4
5
## S3 method for class 'finbif_records'
as.data.frame(x, ..., locale = getOption("finbif_locale"))

## S3 method for class '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.

Value

A data.frame.

Examples

1
2
3
4
5
6
7
8
## Not run: 

# Download the latest records from FinBIF
# and convert to a `data.frame`
resp <- finbif_records()
df <- as.data.frame(resp)

## End(Not run)

finbif documentation built on Sept. 5, 2021, 5:43 p.m.