Learn R Programming

questionr (version 0.7.8)

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

23,591

Version

0.7.8

License

GPL (>= 2)

Maintainer

Last Published

January 31st, 2023

Functions in questionr (0.7.8)

addNAstr

Transform missing values of a factor to an extra level
enfants

A fertility survey - "enfants" table
duplicated2

Determine all duplicate elements
children

A fertility survey - "children" table
chisq.residuals

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

Transform an object into HTML and copy it for export
cprop

Column percentages of a two-way frequency table.
cramer.v

Compute Cramer's V 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
femmes

A fertility survey - "femmes" table
ggsurvey

Easy ggplot2 with survey objects
fertility

A fertility survey
freq.na

Generate frequency table of missing values.
freq

Generate frequency tables.
escape_regex

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

A fertility survey
happy

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

Interactive conversion from numeric to factor
iorder

Interactive reordering of factor levels
format.proptab

S3 format method for proptab objects.
hdv2003

Histoire de vie 2003
first_non_null

Return first non-null of two values
menages

A fertility survey - "menages" table
irec

Interactive recoding
ltabs

Cross tabulation with labelled variables
recode.na

Recode values of a variable to missing values, using exact or regular expression matching.
multi.split

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

A fertility survey - "households" table
prop

Global percentages of a two-way frequency table.
women

A fertility survey - "women" table
reexports

Objects exported from other packages
odds.ratio

Odds Ratio
print.proptab

S3 print method for proptab objects.
qload

Load one or more packages, installing them first if necessary
wtd.mean

Weighted mean and variance of a vector
rename.variable

Rename a data frame column
rp2012

2012 French Census - French cities of more than 2000 inhabitants
rm.unused.levels

Remove unused levels
rprop

Row percentages of a two-way frequency table.
rp2018

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

Weighted Crossresult
wtd.table

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

One-way frequency table for multiple choices question
na.rm

Remove observations with missing values
qscan

Scan R scripts and load/install all detected packages
quant.cut

Transform a quantitative variable into a qualitative variable