R package for connecting and retreive data from OpenBioMaps servers
For shiny data exploration, see the OBM Insight R-Shiny app: http://computation.openbiomaps.org
library("devtools")
install_github('OpenBioMaps/obm.r')
library(obm)
initialize connection to dead_animals database on openbiomaps.org. If the database is registered in openbiomaps.org it might be works without the url param
obm_init('dead_animals')
obm_init('dead_animals','https://somewhere.something')
obm_init()
obm_auth()
data <- obm_get('get_data','39980:39988')
data <- obm_get('get_data','*')
data <- obm_get('get_data','*',table='buildings')
data <- obm_get('get_data','filter=species=Parus palustris')
form_list <- obm_get('get_form_list')
form_data <- obm_get('get_form_data',73)
obm_form_fill(form_data)
obm_put(...)
trl <- '{"trackLogId":"...","trackLogArray":[{...}], ... }' res <- obm_put(scope="tracklog", tracklog=trl)
the last
label points an SQL query which stored on the server. These queries connected with the users.
obm_get('get_report','last')
creates an sql file which can be used in the obm web interface for creating a new table, or add several new columns to an existing table
create_table(file='foo.csv',[data=, sep=',' , quote="'", create-table=F, project=F, table='']
Example:
create_table(file='database_example_rows.csv',quote='"',table='butterfly')
obm_repo('get|put',params=list())
library(obm)
mark_transform(file='Urhanya2017.csv')
...answer questions...
look for output files in you working folder:
-rw-r--r-- 1 banm banm 1157626 febr 8 19.11 Urhanya2017.csv
-rw-r--r-- 1 banm banm 16733 febr 8 19.15 errors.txt
-rw-r--r-- 1 banm banm 90986 febr 8 19.15 nau_results.csv
-rw-r--r-- 1 banm banm 29187 febr 8 19.15 nau_input.inp
-rw-r--r-- 1 banm banm 80159 febr 8 19.15 tel_results.csv
-rw-r--r-- 1 banm banm 25645 febr 8 19.15 tel_input.inp