Learn R Programming

questionr (version 0.8.1)

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

27,011

Version

0.8.1

License

GPL (>= 2)

Issues

Pull Requests

Stars

Forks

Maintainer

Julien Barnier

Last Published

June 10th, 2025

Functions in questionr (0.8.1)

femmes

A fertility survey - "femmes" table
irec

Interactive recoding
print.proptab

S3 print method for proptab objects.
prop

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

2012 French Census - French cities of more than 2000 inhabitants
multi.table

One-way frequency table for multiple choices question
multi.split

Split a multiple choices variable in a series of binary variables
odds.ratio

Odds Ratio
na.rm

Remove observations with missing values
rm.unused.levels

Remove unused levels
ltabs

Cross tabulation with labelled variables
fertility

A fertility survey
qload

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

Scan R scripts and load/install all detected packages
rprop

Row percentages of a cross-tabulation table (2 dimensions or more).
freq

Generate frequency tables.
rp2018

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

Objects exported from other packages
rename.variable

Rename a data frame column
menages

A fertility survey - "menages" table
freq.na

Generate frequency table of missing values.
wtd.mean

Weighted mean and variance of a vector
wtd.table

Weighted one-way and two-way frequency tables.
households

A fertility survey - "households" table
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.
icut

Interactive conversion from numeric to factor
tabs

Weighted Crossresult
women

A fertility survey - "women" table
duplicated2

Determine all duplicate elements
children

A fertility survey - "children" table
escape_regex

Escape regex special chars Code directly taken from Hmisc::escapeRegex
cprop

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

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

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

Describe the variables of a data.frame
addNAstr

Transform missing values of a factor to an extra level
fecondite

A fertility survey
clipcopy

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

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

A fertility survey - "enfants" table
format.proptab

S3 format method for proptab objects.
first_non_null

Return first non-null of two values
iorder

Interactive reordering of factor levels
happy

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

Easy ggplot2 with survey objects
freqtable

Frequency table of variables
hdv2003

Histoire de vie 2003