View source: R/show.question.R
show.question | R Documentation |
Show question sentenses of a variable
show.question(data = data, var.name = var.name)
data |
a data frame object created with read.codebook() |
var.name |
single text object of a varialbe name (could be non-quoted) |
This function returns a question sentense of the varialbe, which is retrieved from '//dataDscr//var//qstn//text()' in a ddi meta data file.
ddi.file.url <- system.file("extdata","samplesurvey2018_ddi.xml",package="DDIR")
data.file.url <- system.file("extdata","samplesurvey2018_data.csv",package="DDIR")
read.codebook(ddi.file.url, data.file.url) -> dataset
show.question(dataset,'Q1')
show.question(dataset$Q1)
require(tidyverse)
dataset %>% show.question(Q1)
dataset %>% show.question('Q1')
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.