Learn R Programming

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

expss (version 0.10.7)

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

Description

Package computes and displays tables with support for 'SPSS'-style labels, multiple and nested banners, weights, multiple-response variables and significance testing. There are facilities for nice output of tables in 'knitr', 'Shiny', '*.xlsx' files, R and 'Jupyter' notebooks. Methods for labelled variables add value labels support to base R functions and to some functions from other packages. Additionally, the package brings popular data transformation functions from 'SPSS' Statistics and 'Excel': 'RECODE', 'COUNT', 'COMPUTE', 'DO IF', 'COUNTIF', 'VLOOKUP' and etc. These functions are very useful for data processing in marketing research surveys. Package intended to help people to move data processing from 'Excel' and 'SPSS' to R.

Copy Link

Version

Install

install.packages('expss')

Monthly Downloads

10,985

Version

0.10.7

License

GPL (>= 2)

Maintainer

Last Published

November 15th, 2020

Functions in expss (0.10.7)

prepend_values

Prepend values/variable names to value/variable labels
expss.options

Options for controlling behavior of the package
expss

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

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

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

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

Match finds value in rows or columns/index returns value by index from rows or columns
tab_significance_options

Mark significant differences between columns in the table
recode

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

Merge two tables/data.frames
compare_proportions

Calculate significance (p-values) of differences between proportions/means
compute

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

Objects exported from other packages
drop_empty_rows

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

Set or get variable label
unlab

Drop variable label and value labels
text_to_columns

Make data.frame from text
xl_write

Write tables and other objects to an xlsx file with formatting
vars

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

Convert labelled variable to factor
ref

Auxiliary functions to pass arguments to function by reference
experimental

Experimental functions for operations with default dataset
fre

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

Add caption to the table
w_mean

Compute various weighted statistics
where

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

Add rows to data.frame/matrix/table
apply_labels

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

Get or set reference to default dataset. Experimental feature.
as.category

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

Create an HTML table widget for usage with Shiny
cro

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

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

Create multiple response set/multiple dichotomy set from variables
htmlTable.etable

Outputting HTML tables in RStudio viewer/R Notebooks
cro_fun

Cross-tabulation with custom summary function.
if_na

Replace values with NA and vice-versa
name_dots

Bug workaround
qc

Create vector of characters from unquoted strings (variable names)
as.labelled

Recode vector into numeric vector with value labels
as_huxtable.etable

Convert table to huxtable
count_if

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

Criteria functions
read_spss

Read an SPSS Data File
tab_sort_asc

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

Provides variables description for dataset
keep

Keep or drop elements by name/criteria in data.frame/matrix
product_test

Data from product test of chocolate confectionary
names2labels

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

Compute nested variable(-s) from several variables
vlookup

Look up values in dictionary.
vectors

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

Function over grouping variables (window function)
tables

Functions for custom tables construction
write_labelled_csv

Write labelled data to file or export file to SPSS syntax.
sort_asc

Sort data.frames/matrices/vectors
split_by

Splits data.frame into list of data.frames that can be analyzed separately
prop

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

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

Set or get value labels
as.dichotomy

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

Convert data.frame/matrix to object of class 'etable'
net

Add subtotal to a set of categories