Learn R Programming

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

splitstackshape (version 1.4.0)

Stack and Reshape Datasets After Splitting Concatenated Values

Description

Online data collection tools like Google Forms often export multiple-response questions with data concatenated in cells. The concat.split (cSplit) family of functions splits such data into separate cells. The package also includes functions to 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.4.0

License

GPL-3

Issues

Pull Requests

Stars

Forks

Maintainer

Ananda Mahto

Last Published

October 13th, 2014

Functions in splitstackshape (1.4.0)

concat.split.multiple

Split Concatenated Cells and Optionally Reshape the Output
cSplit

Split Concatenated Values into Separate Values
concat.split.list

Split Concatenated Cells into a List Format
FacsToChars

Convert All Factor Columns to Character Columns
stratified

Take a Stratified Sample From a Dataset
Names

Dataset Names as a Character Vector, Always
getanID

Add an "id" Variable to a Dataset
charMat

Create a Binary Matrix from a List of Character Values
concat.test

Example Dataset with Concatenated Cells
NoSep

Split Basic Alphanumeric Strings Which Have No Separators
numMat

Create a Numeric Matrix from a List of Values
expandRows

Expand the Rows of a Dataset
Reshape

Reshape Wide Data Into a Semi-long Form
splitstackshape-package

splitstackshape
Stacked

Stack Columns from a Wide Form to a Long Form
concat.split

Split Concatenated Cells in a Dataset
concat.split.compact

Split Concatenated Cells into a Condensed Format
concat.split.expanded

Split Concatenated Values into their Corresponding Column Position
othernames

Extract All Names From a Dataset Other Than the Ones Listed
merged.stack

Take a List of Stacked data.tables and Merge Them
cSplit_f

Split Concatenated Cells in a data.frame or a data.table
read.concat

Read Concatenated Character Vectors Into a data.frame