Learn R Programming

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

expss (version 0.7.1)

Tables with Labels and Some Useful Functions from Spreadsheets and 'SPSS' Statistics

Description

Package provides tabulation functions with support of 'SPSS'-style labels, multiple / nested banners, weights and multiple-response variables. Additionally it offers useful functions for data processing in the social / marketing research surveys - popular data transformation functions from 'SPSS' Statistics ('RECODE', 'COUNT', 'COMPUTE', 'DO IF', etc.) and 'Excel' ('COUNTIF', 'VLOOKUP', etc.). Proper methods for labelled variables add value labels support to base R and other packages. Package aimed to help people to move data processing from 'Excel'/'SPSS' to R.

Copy Link

Version

Install

install.packages('expss')

Monthly Downloads

9,257

Version

0.7.1

License

GPL (>= 2)

Maintainer

Gregory Demin

Last Published

April 9th, 2017

Functions in expss (0.7.1)

add_rows

Add rows to data.frame/matrix/table
count_if

Count/sum/average/other functions on values that meet a criterion
criteria

Criteria functions
cro

Cross tabulation with support of labels, weights and multiple response variables.
cro_fun

Cross-tabulation with custom summary function.
as.category

Convert dichotomy data.frame/matrix to data.frame with category encoding
as.dichotomy

Convert variable (possibly multiple choice question) to data.frame/matrix of dummy variables.
as.labelled

Recode vector into numeric vector with value labels
by_groups

Aggregate dataset by grouping variable(s).
apply_labels

Set variable labels/value labels on variables in the data.frame
expss.options

Options for contolling behaviour of the package
fctr

Convert labelled variable to factor
datatable

Create an HTML table widget for usage with Shiny
default_dataset

Get or set reference to default dataset. Experimental feature.
modify

Modify data.frame/modify subset of the data.frame
info

Provides variables description for dataset
keep

Keep or drop elements by name/criteria in data.frame/matrix/list/vector
nest

Compute nested variable from several variables
mrset

Create multiple response set/multiple dichotomy set from variables
na_if

Replace certain values with NA
names2labels

Replace data.frame/list names with corresponding variables labels.
match_row

Match finds value in rows or columns/index returns value by index from rows or columns
merge.etable

Merge two tables/data.frames
sort_asc

Sort data.frames/matrices/vectors
split_labels

Split character vector to matrix/split columns in data.frame
deprecated

Deprecated functions (don't use them)
do_repeat

Repeats the same transformations on a specified set of variables/values
fre

Simple frequencies with support of labels, weights and multiple response variables.
htmlTable.etable

Outputting HTML tables in RStudio viewer/R Notebooks
sum_row

Compute sum/mean/sd/median/max/min/custom function on rows/columns
tab_sort_asc

Partially (inside blocks) sort tables/data.frames
read_spss

Read an SPSS Data File
ref

Auxiliary functions to pass arguments to function by reference
tables

Functions for tables constraction
unlab

Drop variable label and value labels
window_fun

Function over grouping variables (window function)
drop_empty_rows

Drop empty (with all NA's) rows/columns from data.frame/table
dtfrm

Make data.frame without conversion to factors and without fixing names
if_na

Replace NA values in vector/data.frame/matrix/list with supplied value
if_val

Change, rearrange or consolidate the values of an existing/new variable. Inspired by RECODE command from SPSS.
write_labels

Write data with labels to file in R code or in SPSS syntax.
product_test

Data from product test of chocolate confectionary
val_lab

Set or get value labels
values2labels

Replace vector/matrix/data.frame/list values with corresponding value labels.
w_mean

Compute various weighted statistics
experimental

Experimental functions for operations with default dataset
expss

expss: Tables with Labels and Some Useful Functions from Spreadsheets and SPSS Statistics
vectors

Infix operations on vectors - append, diff, intersection, union, replication
where

Subset (filter) data.frames/matrices/vectors/lists
vlookup

Look up values in dictionary.
prop

Compute proportions from numeric vector/matrix/data.frame
qc

Create vector of characters from unquoted strings (variable names)
var_lab

Set or get variable label
vars

Get variables by pattern/by name or range of variables.