Recoding addins

RStudio addins for variables manipulation.

irec()

Interactive recoding

iorder()

Interactive reordering of factor levels

icut()

Interactive conversion from numeric to factor

Frequency tables

Functions to help working with one-way and two-way frequency tables.

freq()

Generate frequency tables.

rprop()

Row percentages of a two-way frequency table.

cprop()

Column percentages of a two-way frequency table.

prop() prop_table()

Global percentages of a two-way frequency table.

chisq.residuals()

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

cramer.v()

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

ltabs()

Cross tabulation with labelled variables

format(<proptab>)

S3 format method for proptab objects.

print(<proptab>)

S3 print method for proptab objects.

Multiple choices questions

Functions to help working with multiple choices questions.

multi.table()

One-way frequency table for multiple choices question

cross.multi.table()

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

multi.split()

Split a multiple choices variable in a series of binary variables

Datasets

Example datasets.

fecondite

A fertility survey

enfants

A fertility survey - "enfants" table

femmes

A fertility survey - "femmes" table

menages

A fertility survey - "menages" table

fertility

A fertility survey

children

A fertility survey - "children" table

women

A fertility survey - "women" table

households

A fertility survey - "households" table

happy

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

hdv2003

Histoire de vie 2003

rp2012

2012 French Census - French cities of more than 2000 inhabitants

rp2018

2018 French Census - French cities of more than 2000 inhabitants

Weighted variables

Functions to deal with weighted variables

wtd.table()

Weighted one-way and two-way frequency tables.

wtd.mean()

Weighted mean and variance of a vector

ggsurvey()

Easy ggplot2 with survey objects

tabs()

Weighted Crossresult

Data manipulation helpers

Function helping for common data manipulation tasks.

addNAstr()

Transform missing values of a factor to an extra level

duplicated2()

Determine all duplicate elements

`%||%`

Return first non-null of two values

freq.na()

Generate frequency table of missing values.

na.rm()

Remove observations with missing values

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.

rename.variable()

Rename a data frame column

rm.unused.levels()

Remove unused levels

Odds ratio

Functions to compute and deal with odds ratio.

odds.ratio() print(<odds.ratio>)

Odds Ratio

Utils

Utility functions.

clipcopy()

Transform an object into HTML and copy it for export

describe() print(<description>)

Describe the variables of a data.frame

reexports look_for lookfor

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

escape_regex()

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