![]() The data downloaded using this procedure is in json format, which, for some of us, is not a very convenient format to deal with. Main data is usually inside results.įollowing shows the summary of the list downloaded from one kobotools_kpi_data query. 1KoboconnectR::kobotools_kpi_data(assetid= "assetid", url="", uname="username", pwd="password") Use the asset id and plug in to the kobotools_kpi_data function to download the data. ![]() The output will be a simplified data frame if simplified =T is used in the kobotools_api function.įrom the data frame, you can find the asset id you need ((under the column asset)). Check the assets you have access to 1KoboconnectR::kobotools_api(url="", simplified=T, uname="userid", pwd="password") And next is to use the asset id to extract the data. Extracting dataĮxtracting data is two step process. The development version can be installed using 1# install.packages("devtools") # Install devtools first, if not already installedĢdevtools::install_github("asitav-sen/KoboconnectR")Ĭheck the API token 1library(KoboconnectR)Ģget_kobo_token(url="", uname="userid", pwd="password")Ĭheck the support documentation of Kobotoolbox for details. KoboconnectR package is a small package in R, with simple functions that enables download of data from Kobotoolbox. After several failed attempts, it is finally in CRAN( ). That is why I started working on creating the KoboconnectR package. Usually, one can easily find a package that is a simple to use wrapper of APIs. However, it was an additional task or was bit inconvenient. This did provide the opportunity to access data directly without creating any export. The other option was to use the Kobotoolbox APIs. So, there was a need to create exports every time there was a need to analyse data. I had to create an export manually and download the ‘csv’ or ‘xls.’ But the export does not update itself when new data is added in the survey. Despite the advanced capabilities, I found it little difficult to download the data in R directly. It even has the capability to collect data from a remote location (not connected) and transfer the data in server when the device connects to the internet. I came across the tool couple of years back while helping Jaljeevika in its initiative to start using Data Science in Fisheries industry in India.ĭeveloped, maintained and supported by the community, Kobotoolbox is a very advanced tool with modern capabilities. While UNDP uses it to fight malaria, Society for Odonate Studies use it to track dragonfly migration. Kobotoolbox is perhaps the most widely used data collection tool used by non-profit organizations across the globe. Using a R package it is now possible, with convenience, to download data from Kobotoolbox to R. Kobotoolbox is a popular tool or platform used by Non-profit organizations across the globe to collect data.
0 Comments
Leave a Reply. |