Lists locations available on a brapi server.

ba_locations(con = NULL, locationType = "all", page = 0,
  pageSize = 1000, rclass = "tibble")

Arguments

con

brapi connection object

locationType

character, list of data types

page

integer; default 0

pageSize

integer; default 1000

rclass

character; default: "tibble" possible other values: "json"/"list"/"data.frame"

Value

rclass as defined

Details

All standard attributes are always listed. However, attributes in the additionalInfo only when at least one record has data.

V1.2: same

Note

Tested against: sweetpotatobase, BMS

References

github

Examples

if (interactive()) { library(brapi) # Need to connect to a database with genetic data # con <- ba_db()$xxxxx # ba_locations(con = con, ...) }