Learn R Programming

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

splitstackshape (version 1.0)

Functions to split concatenated data, conveniently stack columns of data.frames, and conveniently reshape data.frames.

Description

Online data collection tools like Google Forms often export multiple-response questions with data concatenated in cells. The concat.split family of functions conveniently splits such data into separate cells. The package also includes functions to conveniently stack groups of columns and to reshape wide data, even when the data are "unbalanced"---something which reshape (from base R) does not handle, and which melt and dcast from reshape2 do not easily handle.

Copy Link

Version

Install

install.packages('splitstackshape')

Monthly Downloads

5,945

Version

1.0

License

GPL-3

Issues

Pull Requests

Stars

Forks

Maintainer

Ananda Mahto

Last Published

August 13th, 2013

Functions in splitstackshape (1.0)

Stacked

stack columns from a wide form to a long form
othernames

Extract all names from a data.frame other than the one listed
concat.split.compact

Split concatenated cells in a data.frame into a condensed format
concat.split.multiple

Split concatenated cells in a data.frame and optionally reshape the output
concat.split.list

Split concatenated cells in a data.frame into a list format
merged.stack

Take a list of stacked data.tables and merge them
concat.test

Example dataset with concatenated cells
NoSep

Split basic alphanumeric strings which have no separators
concat.split.expanded

Split numeric concatenated values into their corresponding column position
valueMat

Create a binary matrix from a list of values
FacsToChars

Convert all factor columns to character columns in a data.frame
Reshape

Reshape wide data into a semi-long form
splitstackshape-package

splitstackshape
binaryMat

Create a binary matrix from a list of values
read.concat

Read concatenated character vectors into a data.frame
concat.split

Split concatenated cells in a data.frame