Learn R Programming

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

expss (version 0.5.5)

Some Useful Functions from Spreadsheets and 'SPSS' Statistics

Description

Package implements several popular functions from Excel ('COUNTIF', 'VLOOKUP', etc.) and 'SPSS' Statistics ('RECODE', 'COUNT', etc.). Also there are functions for basic tables with value labels/variable labels support. 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.5.5

License

GPL (>= 2)

Issues

Pull Requests

Stars

Forks

Maintainer

Gregory Demin

Last Published

October 19th, 2016

Functions in expss (0.5.5)

as.labelled

Recode vector into integer vector with value labels
default_dataset

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

expss: Some Useful Functions from Spreadsheets and SPSS Statistics
dichotomy

Convert variable (possibly multiple choice question) to matrix of dummy variables.
dtfrm

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

Add rows to data.frame/matrix/table
category

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

Criteria functions
count_if

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

Experimental functions for operations with default dataset
f

Convert labelled variable to factor
info

Provides variables description for dataset
keep

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

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

Modify data.frame/conditionally modify data.frame
fre

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

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

Replace certain values with NA
merge.simple_table

Merge two tables/data.frames
if_val

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

Drop variable label and value labels
ref

Auxiliary functions to pass arguments to function by reference
prop

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

Data from product test of chocolate confectionary
qc

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

Set or get value labels
sort_asc

Sort data.frames/matrices/vectors
read_spss

Read an SPSS Data File
names2labels

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

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

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

Set or get variable label
vars_range

Get range of variables/variables by pattern/by name
where

Subsetting Data Frames
vlookup

Look up values in dictionary.
values2labels

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

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