reshape2 1.4.2

Flexibly Reshape Data: A Reboot of the Reshape Package

Homepage: https://github.com/hadley/reshape

Platform: CRAN

Language: R

License: MIT

View on registry: https://cran.r-project.org/package=reshape2

Documentation: http://cran.r-project.org/web/packages/reshape2/reshape2.pdf

Direct download link: https://cran.r-project.org/src/contrib/reshape2_1.4.2.tar.gz


Reshape2

Build Status

Reshape2 is a reboot of the reshape package. It's been over five years since the first release of reshape, and in that time I've learned a tremendous amount about R programming, and how to work with data in R. Reshape2 uses that knowledge to make a new package for reshaping data that is much more focused and much much faster.

This version improves speed at the cost of functionality, so I have renamed it to reshape2 to avoid causing problems for existing users. Based on user feedback I may reintroduce some of these features.

What's new in reshape2:

  • considerably faster and more memory efficient thanks to a much better underlying algorithm that uses the power and speed of subsetting to the fullest extent, in most cases only making a single copy of the data.

  • cast is replaced by two functions depending on the output type: dcast produces data frames, and acast produces matrices/arrays.

  • multidimensional margins are now possible: grand_row and grand_col have been dropped: now the name of the margin refers to the variable that has its value set to (all).

  • some features have been removed such as the | cast operator, and the ability to return multiple values from an aggregation function. I'm reasonably sure both these operations are better performed by plyr.

  • a new cast syntax which allows you to reshape based on functions of variables (based on the same underlying syntax as plyr):

  • better development practices like namespaces and tests.

  • the function melt now names the columns of its returned data frame Var1, Var2, ..., VarN instead of X1, X2, ..., XN.

  • the argument variable.name of melt replaces the old argument variable_name.

Initial benchmarking has shown melt to be up to 10x faster, pure reshaping cast up to 100x faster, and aggregating cast() up to 10x faster.

This work has been generously supported by BD (Becton Dickinson).

Installation

  • Get the released version from cran: install.packages("reshape2")
  • Get the dev version from github: devtools::install_github("hadley/reshape")

Releases

  • 1.4.2 - October 22, 2016 00:00
  • 1.4.1 - December 06, 2014 00:00
  • 1.4 - April 23, 2014 16:34
  • 1.2.2 - December 04, 2012 23:10
  • 1.2.1 - January 10, 2012 15:06
  • 1.2 - November 18, 2011 15:46
  • 1.1 - January 04, 2011 08:39
  • 1.0 - September 10, 2010 09:28

Project Statistics

SourceRank 18
Dependencies 0
Dependent projects 275
Dependent repositories 943
Total releases 8
Latest release
First release
Stars 144
Forks 42
Watchers 21
Contributors 11
Repo Size: 2.19 MB

Top Contributors See all

Hadley Wickham Kevin Ushey Winston Chang Brian Diggs Chel Hee Lee Grant Rettke Julien Cornebise Jim Hester Ken Williams Ben Marwick Anton Antonov

Something wrong with this page? Make a suggestion

Export .ABOUT file for this library

Last synced: 2016-10-24 14:41:36 UTC