Description Usage Arguments Value Author(s) Examples
This function display the overall tracking sheet.
1 2 3 4 5 6 7 8 9 10 |
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 |
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)
Yannick Pascaud
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)
}
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.