Package 'kobostandards'

Title: What the Package Does (Title Case)
Description: More about what it does (maybe more than one line) Use four spaces when indenting paragraphs within the Description.
Authors: Who wrote it
Maintainer: The package maintainer <[email protected]>
License: GPL-3
Version: 0.1.0.9000
Built: 2024-11-23 03:46:58 UTC
Source: https://github.com/mabafaba/kobostandards

Help Index


adding issues together

Description

adding issues together

Usage

add_issues(x) <- value

Examples

# use me like you'd use `names()`:
add_issues(existing_list_of_issues)<-another_list_of_issues
# is equivalent to:
existing_list_of_issues<-rbind(existing_df_with_issues,another_df_with_issues)

Check if Assessment files are in order

Description

Check if Assessment files are in order

Usage

check_input(data = NULL, questions = NULL, choices = NULL,
  samplingframe = NULL, analysisplan = NULL)

Arguments

data

the dataset ( from load_data() )

samplingframe

the samplingframe ( from load_samplingframe() )

questionnaire

the questionnaire ( from load_questionnaire() )


check analysisplan (this one is for analysisplan inputs to the hypegrammaR package specifically)

Description

check analysisplan (this one is for analysisplan inputs to the hypegrammaR package specifically)

Usage

check_input_analysisplan(analysisplan)

Arguments

analysisplan

the analysisplan as a data.frame

Value

list of issues (see ?new_issues() for details)


Check if data format is good

Description

Check if data format is good

Usage

check_input_data(data)

Arguments

data

data as data frame

Value

data frame with issues (see 'new_issues()' for details)


Check for inconsistencies between an xlsform questionnaire and a dataset

Description

Check for inconsistencies between an xlsform questionnaire and a dataset

Usage

check_input_match_data_questionnaire(data, questions, choices)

Arguments

data

dataset as data.frame

xlsform

questions sheet as data.frame

xlsform

choices sheet as data.frame


Check if questionnaire format is good

Description

Check if questionnaire format is good

Usage

check_input_questionnaire(questions, choices)

Arguments

questions

kobo questions sheet as data frame

choices

kobo choices sheet as data frame

Value

data frame with issues (see 'new_issues()' for details)


check sampling frame data structure

Description

check sampling frame data structure

Usage

check_input_samplingframe(samplingframe)

Value

list of issues (see ?new_issues() for details)


Hello, World!

Description

Prints 'Hello, world!'.

Usage

hello()

Examples

hello()

create a df with new issues in standard format

Description

all parameters except 'issue' are optional each paramter must be a vector, they all must have the same length length 'severity' must be one of the predefined levels

Usage

new_issues(issue = character(0),
  affected_files = character(length(issue)),
  affected_variables = character(length(issue)),
  severity = factor(length(issue), levels = c("minor", "problematic",
  "critical")), comment = character(length(issue)))