• Home
  • History
  • Annotate
Name Date Size #Lines LOC

..03-May-2022-

R/H09-Apr-2020-827318

data/H03-May-2022-

inst/H09-Apr-2020-2016

man/H23-Oct-2018-667588

po/H23-Oct-2018-9774

src/H09-Apr-2020-355273

tests/H23-Oct-2018-472351

DESCRIPTIONH A D09-Apr-2020717 2221

LICENSEH A D21-Oct-201649 32

MD5H A D09-Apr-20202.1 KiB4544

NAMESPACEH A D09-Apr-2020404 2119

NEWS.mdH A D09-Apr-20202.9 KiB9157

README.mdH A D09-Apr-20202.5 KiB4930

README.md

1# reshape2
2
3<!-- badges: start -->
4[![R build status](https://github.com/hadley/reshape/workflows/R-CMD-check/badge.svg)](https://github.com/hadley/reshape/actions)
5[![Codecov test coverage](https://codecov.io/gh/hadley/reshape/branch/master/graph/badge.svg)](https://codecov.io/gh/hadley/reshape?branch=master)
6<!-- badges: end -->
7
8## Status
9
10[![lifecycle](https://img.shields.io/badge/lifecycle-retired-orange.svg)](https://img.shields.io/badge/lifecycle-retired-orange.svg)
11
12reshape2 is retired: only changes necessary to keep it on CRAN will be made. We recommend using [tidyr](http://tidyr.tidyverse.org/) instead.
13
14## Introduction
15
16Reshape2 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.
17
18This 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.
19
20What's new in `reshape2`:
21
22 * considerably faster and more memory efficient thanks to a much better
23   underlying algorithm that uses the power and speed of subsetting to the
24   fullest extent, in most cases only making a single copy of the data.
25
26 * cast is replaced by two functions depending on the output type: `dcast`
27   produces data frames, and `acast` produces matrices/arrays.
28
29 * multidimensional margins are now possible: `grand_row` and `grand_col` have
30   been dropped: now the name of the margin refers to the variable that has
31   its value set to (all).
32
33 * some features have been removed such as the `|` cast operator, and the
34   ability to return multiple values from an aggregation function. I'm
35   reasonably sure both these operations are better performed by plyr.
36
37 * a new cast syntax which allows you to reshape based on functions
38   of variables (based on the same underlying syntax as plyr):
39
40 * better development practices like namespaces and tests.
41
42 * the function `melt` now names the columns of its returned data frame `Var1`, `Var2`, ..., `VarN`  instead of `X1`, `X2`, ..., `XN`.
43
44 * the argument `variable.name` of `melt` replaces the old argument `variable_name`.
45
46Initial benchmarking has shown `melt` to be up to 10x faster, pure reshaping `cast` up to 100x faster, and aggregating `cast()` up to 10x faster.
47
48This work has been generously supported by BD (Becton Dickinson).
49