Learn R Programming

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

questionr (version 0.7.5)

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,292

Version

0.7.5

License

GPL (>= 2)

Maintainer

Julien Barnier

Last Published

October 6th, 2021

Functions in questionr (0.7.5)

first_non_null

Return first non-null of two values
icut

Interactive conversion from numeric to factor
ifunc_get_css

Returns custom CSS content
format.proptab

S3 format method for proptab objects.
ifunc_run_as_addin

Check if we are currently running as an rstudio addin
ggsurvey

Easy ggplot2 with survey objects
qscan

Scan R scripts and load/install all detected packages
ifunc_show_alert

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

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

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

Load one or more packages, installing them first if necessary
cramer.v

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

One-way frequency table for multiple choices question
wtd.table

Weighted one-way and two-way frequency tables.
wtd.mean

Weighted mean and variance of a vector
freq

Generate frequency tables.
ltabs

Cross tabulation with labelled variables
freq.na

Generate frequency table of missing values.
rp99

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

Row percentages of a two-way frequency table.
fecondite

A fertility survey
iorder

Interactive reordering of factor levels
escape_regex

Escape regex special chars Code directly taken from Hmisc::escapeRegex
print.proptab

S3 print method for proptab objects.
menages

A fertility survey - "menages" table
prop

Global percentages of a two-way frequency table.
rm.unused.levels

Remove unused levels
rp2012

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

A fertility survey - "femmes" 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.
hdv2003

Histoire de vie 2003
fertility

A fertility survey
irec

Interactive recoding
na.rm

Remove observations with missing values
households

A fertility survey - "households" table
tabs

Weighted Crossresult
odds.ratio

Odds Ratio
reexports

Objects exported from other packages
women

A fertility survey - "women" table
rename.variable

Rename a data frame column
duplicated2

Determine all duplicate elements
describe

Describe the variables of a data.frame
children

A fertility survey - "children" table
cprop

Column percentages of a two-way frequency table.
chisq.residuals

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

Transform missing values of a factor to an extra level
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
enfants

A fertility survey - "enfants" table