obm_get: Get Function

Description Usage Arguments Examples

View source: R/openbiomaps.R

Description

This function allows you to get data from an OpenBioMaps server.

Usage

1
2
obm_get(scope = "", condition = NULL, token = OBM$token,
  url = OBM$pds_url, table = OBM$project)

Arguments

scope

Which scope? e.g. get_data

condition

A text condition based on column in your table

token

obm_init() provide it

url

obm_init() provide it

table

optional table from project

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
get data rows from the main table from 39980 to 39988
data <- obm_get('get_data','39980:39988')
get rows from the main table where column 'species' is 'Parus palustris'
data <- obm_get('get_data','species=Parus palustris')
get all data from the default/main table
data <- obm_get('get_data','*')
get data from a non-default table
obm_get('get_data','*',table='additional_data')

get list of available forms
data <- obm_get('get_form_list')
get data of a form
data <- obm_get('get_form_data',73)
perform strored query 'last' is a custom label
obm_get('get_report','last')
get list of available tables in the project
obm_get('get_tables')

OpenBioMaps/obm.r documentation built on June 14, 2018, 1:21 p.m.