Learn R Programming

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

splitstackshape (version 1.2.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.2.0

License

GPL-3

Issues

Pull Requests

Stars

Forks

Maintainer

Ananda Mahto

Last Published

August 27th, 2013

Functions in splitstackshape (1.2.0)

concat.test

Example dataset with concatenated cells
merged.stack

Take a list of stacked data.tables and merge them
binaryMat

Create a binary matrix from a list of values
othernames

Extract all names from a data.frame other than the one listed
getanID

Add an "id" variable to a dataset
FacsToChars

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

Create a binary matrix from a list of values
splitstackshape-package

splitstackshape
concat.split.list

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

Split concatenated cells in a data.frame and optionally reshape the output
Names

names as a character vector, always
NoSep

Split basic alphanumeric strings which have no separators
concat.split

Split concatenated cells in a data.frame
concat.split.compact

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

Split numeric concatenated values into their corresponding column position
read.concat

Read concatenated character vectors into a data.frame
Reshape

Reshape wide data into a semi-long form
Stacked

stack columns from a wide form to a long form