assessmentTrackingSheet: Overall tracking sheet

Description Usage Arguments Value Author(s) Examples

View source: R/functions_a.R

Description

This function display the overall tracking sheet.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
assessmentTrackingSheet(
  ds = NULL,
  dsSite = NULL,
  sampleSizeTable = NULL,
  sampleSizeTableSite = NULL,
  sampleSizeTableTarget = NULL,
  sampleSizeTableAvailable = NULL,
  surveyConsent = NULL,
  consentForValidSurvey = NULL
)

Arguments

ds

dataset containing the survey (from kobo): data.frame

dsSite

name of the field in the dataset where the site is stored: string

sampleSizeTable

dataset containing the sampling frame: data.frame

sampleSizeTableSite

name of the field in the sampling frame where the site is stored: string

sampleSizeTableTarget

name of the field where the target number of survey is stored in the sampling frame: string

sampleSizeTableAvailable

name of the field where the number of points generated is stored in the sampling frame: string

surveyConsent

name of the field in the dataset where the survey consent is stored: string

consentForValidSurvey

value defined in the kobo form to acknowledge the surveyed person gave his consent: string

Value

dst same dataset as the inputed one but with survey marked for deletion if errors are found and delete=TRUE (or NULL)

ret_log list of the errors found (or NULL)

var a list of value (or NULL)

graph graphical representation of the results (or NULL)

Author(s)

Yannick Pascaud

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
{
ds <- HighFrequencyChecks::sample_dataset
dsSite <- "union_name"
sampleSizeTable <- HighFrequencyChecks::SampleSize
sampleSizeTableSite <- "Union"
sampleSizeTableTarget <- "SS"
sampleSizeTableAvailable <- "TotPts"                # Usually the Target + a buffer
surveyConsent <- "survey_consent"
consentForValidSurvey <- "yes"                      # consent value for yes

list[dst,ret_log,var,graph] <- assessmentTrackingSheet(ds=ds,
                                                 dsSite=dsSite,
                                                 sampleSizeTable=sampleSizeTable,
                                                 sampleSizeTableSite=sampleSizeTableSite,
                                                 sampleSizeTableTarget=sampleSizeTableTarget,
                                                 sampleSizeTableAvailable=sampleSizeTableAvailable,
                                                 surveyConsent=surveyConsent,
                                                 consentForValidSurvey=consentForValidSurvey)
head(ret_log,10)
print(graph)
}

PYannick/HighFrequencyChecks documentation built on Dec. 31, 2020, 3:26 p.m.