qcbsmdc_get_tables: Get the content of all tables for a given form, or of a...

Description Usage Arguments Value See Also Examples

Description

Get the content of all tables for a given form, or of a particular table, on the QCBS Mobile Data Collection System

Usage

1
qcbsmdc_get_tables(conn, form_id, table = "all")

Arguments

conn

a connection list file containing user_id and api_key values

form_id

the name or id of the form from which the table list is to be obtained

table

either 'all' if all tables are desired, or the name of the table to be obtained

Value

list containing all tables associated with the form as data frames (if table='all) or data frame if the table option specifies the name of a particular table

See Also

qcbsmdc_list_forms for obtaining forms

qcbsmdc_list_tables for obtaining the content of the tables

qcbsmdc_get_files for saving files (e.g. photos) to your a local directory

Examples

1
2
3
4
5
6
## api keys can be obtained from your account on the http://mdc.quebio.ca website
conn=list(user_id="JohnDoe",api_key='8fjasdf3h112aad') 
#GET all tables
table_list<-qcbsmdc_get_tables(conn=conn,form_id='MyForm1',table='all')
#GET a particular table
the_table<-qcbsmdc_get_tables(conn=conn,form_id='MyForm1',table='uuid0MyTable')

QCBS/qcbsmdc documentation built on May 8, 2019, 3:48 a.m.