write_questionnaire: Print questionnaire

Description Usage Arguments Author(s) Examples

View source: R/internal.R

Description

This function creates a .xlsx file with a "pretty print" of a questionnaire for a specific study. It expects the internal master questionnaire as input ( or a data.frame structured like the master questionnaire), as an R object. The master questionnaire itself can be read by read_data).

Usage

1
2
write_questionnaire(x, file, study = NULL, segment = NULL, year = NULL,
  entity = NULL)

Arguments

x

The questionnaire (data.frame).

file

A file path for the output.

study

Name of the study.

segment

Filter by segment (B2B/B2C).

year

Optional: Filter the annual edition of the questionnaire. Defaults to current year.

entity

Optional: Replace {XX} with something else.

Author(s)

Kristian D. Olsen

Examples

1
2
3
4
5
## Not run: 
  q <- read_data("master questionnaire.xlsx", sheet = "questionnaires")
  write_questionnaire(q, "Banking B2C.xlsx", study = "Banking", segment = "B2C", year = 2016)

## End(Not run)

itsdalmo/reporttoolDT documentation built on May 18, 2019, 7:11 a.m.