Learn R Programming

questionr (version 0.8.2)

Functions to Make Surveys Processing Easier

Description

Set of functions to make the processing and analysis of surveys easier : interactive shiny apps and addins for data recoding, contingency tables, dataset metadata handling, and several convenience functions.

Copy Link

Version

Install

install.packages('questionr')

Monthly Downloads

37,627

Version

0.8.2

License

GPL (>= 2)

Issues

Pull Requests

Stars

Forks

Maintainer

Julien Barnier

Last Published

January 21st, 2026

Functions in questionr (0.8.2)

multi.table

One-way frequency table for multiple choices question
irec

Interactive recoding
iorder

Interactive reordering of factor levels
icut

Interactive conversion from numeric to factor
quant.cut

Transform a quantitative variable into a qualitative variable
recode.na

Recode values of a variable to missing values, using exact or regular expression matching.
na.rm

Remove observations with missing values
odds.ratio

Odds Ratio
happy

Data related to happiness from the General Social Survey, 1972-2006.
hdv2003

Histoire de vie 2003
reexports

Objects exported from other packages
qload

Load one or more packages, installing them first if necessary
qscan

Scan R scripts and load/install all detected packages
rename.variable

Rename a data frame column
rprop

Row percentages of a cross-tabulation table (2 dimensions or more).
rm.unused.levels

Remove unused levels
print.proptab

S3 print method for proptab objects.
prop

Global percentages of a cross-tabulation table (2 dimensions or more).
rp2018

2018 French Census - French cities of more than 2000 inhabitants
rp2012

2012 French Census - French cities of more than 2000 inhabitants
women

A fertility survey - "women" table
tabs

Weighted Crossresult
wtd.mean

Weighted mean and variance of a vector
wtd.table

Weighted one-way and two-way frequency tables.
cross.multi.table

Two-way frequency table between a multiple choices question and a factor
describe

Describe the variables of a data.frame
enfants

A fertility survey - "enfants" table
chisq.residuals

Return the chi-squared residuals of a two-way frequency table.
duplicated2

Determine all duplicate elements
cprop

Column percentages of a cross-tabulation table (2 dimensions or more).
addNAstr

Transform missing values of a factor to an extra level
first_non_null

Return first non-null of two values
escape_regex

Escape regex special chars Code directly taken from Hmisc::escapeRegex
freq.na

Generate frequency table of missing values.
freq

Generate frequency tables.
ggsurvey

Easy ggplot2 with survey objects
format.proptab

S3 format method for proptab objects.
freqtable

Frequency table of variables
ltabs

Cross tabulation with labelled variables
multi.split

Split a multiple choices variable in a series of binary variables
households

A fertility survey - "households" table
fecondite

A fertility survey
menages

A fertility survey - "menages" table
clipcopy

Transform an object into HTML and copy it for export
cramer.v

Compute Cramer's V of a two-way frequency table
children

A fertility survey - "children" table
femmes

A fertility survey - "femmes" table
fertility

A fertility survey