Learn R Programming

⚠️There's a newer version (0.8.2) of this package.Take me there.

questionr (version 0.7.4)

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

26,189

Version

0.7.4

License

GPL (>= 2)

Maintainer

Julien Barnier

Last Published

November 30th, 2020

Functions in questionr (0.7.4)

cprop

Column percentages of a two-way frequency table.
addNAstr

Transform missing values of a factor to an extra level
duplicated2

Determine all duplicate elements
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
clipcopy

Transform an object into HTML and copy it for export
describe

Describe the variables of a data.frame
children

A fertility survey - "children" table
cramer.v

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

A fertility survey - "enfants" table
first_non_null

Return first non-null of two values
freq.na

Generate frequency table of missing values.
ifunc_show_alert

Display an alert, only on first launch for the current session
freq

Generate frequency tables.
ifunc_run_as_addin

Check if we are currently running as an rstudio addin
format.proptab

S3 format method for proptab objects.
ltabs

Cross tabulation with labelled variables
escape_regex

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

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

A fertility survey
qscan

Scan R scripts and load/install all detected packages
femmes

A fertility survey - "femmes" table
ifunc_get_css

Returns custom CSS content
multi.split

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

Interactive conversion from numeric to factor
fertility

A fertility survey
wtd.mean

Weighted mean and variance of a vector
wtd.table

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

One-way frequency table for multiple choices question
rm.unused.levels

Remove unused levels
rp2012

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

Histoire de vie 2003
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.
rprop

Row percentages of a two-way frequency table.
menages

A fertility survey - "menages" table
rp99

1999 French Census - Cities from the Rh<U+00F4>ne state
households

A fertility survey - "households" table
na.rm

Remove observations with missing values
odds.ratio

Odds Ratio
reexports

Objects exported from other packages
ggsurvey

Easy ggplot2 with survey objects
irec

Interactive recoding
iorder

Interactive reordering of factor levels
happy

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

Rename a data frame column
prop

Global percentages of a two-way frequency table.
print.proptab

S3 print method for proptab objects.
tabs

Weighted Crossresult
women

A fertility survey - "women" table