Short Description

Preliminary analysis from RDJF. All source code and project availible at https://github.com/crepeia/RDJFinal.

R Chunks are commented due to formhubR it is not an official package

First Step

  1. Preparing packages using packrat version control

Using packrat in order to keep all packages at the same versions

#packrat::init(options = list(vcs.ignore.src = TRUE, use.cache = TRUE))
  1. Preparing connection R and Formhub - installing and loading devtools and formhub foringer package

Install devtools in order to install formhub.R packge from github source

#install.packages("devtools")
#library(devtools)

Install source and loading formhub.R in order to pull data from https://www.formhub.org/leomartinsjf/RDJFinal

#install_github("formhub.R", username="SEL-Columbia")
#library(formhub)
  1. Pulling data from Formhub account.

It is important to check and update your formhub account before this step in order to refresh your last database with collected data

Parameters - database name, user name, password

#RDJF <- formhubDownload("RDJFinal", "leomartinsjf", "teclado86")
  1. Checking formhub data objects
#str(RDJF)
  1. Converting formhudata objects to dataframe
#RDJFdata.frame <- data.frame(RDJF)
  1. Changing variable names and headers for labels
#RDJF.allnames <- replaceAllNamesWithLabels(RDJF)

Next Step:

  1. Pedro - Review file with “Observações” creating a to do list
  2. Fernando - Check Social Network Analysis in R
  3. Leo - Clean the database and check database structure for futher analysis