prestaConta: Create html accountability report from prestaConta okd...

View source: R/odk.R

prestaContaR Documentation

Create html accountability report from prestaConta okd collect form data

Description

Create html accountability report from prestaConta okd collect form data

Usage

prestaConta(
  dataDir,
  dataName = "prestaConta",
  dirExp = getwd(),
  valParc = c(70, 100),
  valFixo = data.frame(nome = c("Renan"), cargo = c("coordena"), valor = c(1500)),
  pagaFixo = FALSE,
  saveFile = TRUE,
  fileRmd = system.file("rmd", "prestaConta.rmd", package = "Rppsp")
)

Arguments

dataDir

character string, directory where a odk briefcases exports csv files.

dataName

character string, odk briefcase data exported prefix file name

dirExp

character string, directory where html report and data files will be created.

valFixo

data frame with 3 variables, name of field workers, job role and montly paiment.

pagaFixo

logic. Should include fix montly payment (valFixo) in the report?

saveFile

logic. Should save report data?

fileRmd

character string indicating the location of rmd template file.

valPar

numeric vector length 2. Value paid for assistant and lider field workers

Value

'prestaConta' returns html report file and can save data in csv format.

Author(s)

Alexandre Adalardo de Oliveira aleadalardo@gmail.com

References

https://opendatakit.org/

See Also

http://labtrop.ib.usp.br

Examples


## Not run: 
prestaConta(dataDir = getwd(), dataName="prestaConta", dirExp = getwd(), valParc = c(70,100), valFixo = data.frame(nome= c("Renan"), cargo = c("coordena"),valor = c(1500)), pagaFixo = FALSE,  saveFile=FALSE, fileRmd = system.file("rmd", "prestaConta.rmd", package = "Rppsp"))

## End(Not run)


adalardo/Rppsp documentation built on Sept. 17, 2022, 3:42 a.m.