r-reshape2

An R package to flexible rearrange, reshape and aggregate data

https://github.com/hadley/reshape

Science Score: 10.0%

This score indicates how likely this project is to be science-related based on various indicators:

  • CITATION.cff file
  • codemeta.json file
  • .zenodo.json file
  • DOI references
  • Academic publication links
  • Committers with academic emails
    1 of 11 committers (9.1%) from academic institutions
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (14.1%) to scientific vocabulary

Keywords from Contributors

package-creation rmarkdown literate-programming pandoc date-time grammar data-manipulation latex gitbook epub
Last synced: 11 months ago · JSON representation

Repository

An R package to flexible rearrange, reshape and aggregate data

Basic Info
  • Host: GitHub
  • Owner: hadley
  • License: other
  • Language: R
  • Default Branch: master
  • Homepage: http://had.co.nz/reshape
  • Size: 2.71 MB
Statistics
  • Stars: 213
  • Watchers: 19
  • Forks: 56
  • Open Issues: 46
  • Releases: 0
Created almost 18 years ago · Last pushed about 1 year ago
Metadata Files
Readme License

README.md

reshape2

R build status Codecov test coverage <!-- badges: end -->

Status

Lifecycle: superseded

reshape2 is superseded: only changes necessary to keep it on CRAN will be made. We recommend using tidyr instead.

Introduction

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).

Owner

  • Name: Hadley Wickham
  • Login: hadley
  • Kind: user
  • Location: Houston, TX
  • Company: @posit-pbc

Chief Scientist at @posit-pbc

GitHub Events

Total
  • Issues event: 1
  • Watch event: 1
  • Issue comment event: 1
  • Push event: 1
  • Pull request event: 6
Last Year
  • Issues event: 1
  • Watch event: 1
  • Issue comment event: 1
  • Push event: 1
  • Pull request event: 6

Committers

Last synced: about 1 year ago

All Time
  • Total Commits: 220
  • Total Committers: 11
  • Avg Commits per committer: 20.0
  • Development Distribution Score (DDS): 0.209
Past Year
  • Commits: 0
  • Committers: 0
  • Avg Commits per committer: 0.0
  • Development Distribution Score (DDS): 0.0
Top Committers
Name Email Commits
hadley h****m@g****m 174
Kevin Ushey k****y@g****m 31
Winston Chang w****n@s****g 4
Brian Diggs d****b@o****u 3
Chel Hee Lee g****s@g****m 2
Ken Williams k****s@c****g 1
Julien Cornebise j****e@g****m 1
Jim Hester j****r@g****m 1
Ben Marwick b****k@h****m 1
Anton Antonov t****v@g****m 1
Grant Rettke g****e@a****g 1
Committer Domains (Top 20 + Academic)

Issues and Pull Requests

Last synced: 11 months ago

All Time
  • Total issues: 62
  • Total pull requests: 44
  • Average time to close issues: about 1 year
  • Average time to close pull requests: 5 months
  • Total issue authors: 52
  • Total pull request authors: 22
  • Average comments per issue: 1.5
  • Average comments per pull request: 1.3
  • Merged pull requests: 19
  • Bot issues: 0
  • Bot pull requests: 0
Past Year
  • Issues: 0
  • Pull requests: 11
  • Average time to close issues: N/A
  • Average time to close pull requests: N/A
  • Issue authors: 0
  • Pull request authors: 1
  • Average comments per issue: 0
  • Average comments per pull request: 0.0
  • Merged pull requests: 0
  • Bot issues: 0
  • Bot pull requests: 0
Top Authors
Issue Authors
  • hadley (7)
  • krlmlr (3)
  • Deleetdk (1)
  • mnel (1)
  • Enchufa2 (1)
  • franknarf1 (1)
  • izahn (1)
  • tcaudle (1)
  • eipi10 (1)
  • rmcd1024 (1)
  • hzarkoob (1)
  • biodavidjm (1)
  • knokknok (1)
  • wdesouza (1)
  • piccolbo (1)
Pull Request Authors
  • MichaelChirico (16)
  • kevinushey (10)
  • lionel- (2)
  • wch (2)
  • rmcd1024 (1)
  • ghost (1)
  • byzheng (1)
  • krlmlr (1)
  • GlennS (1)
  • ChrisLeick (1)
  • duncandoo (1)
  • joranE (1)
  • kenahoo (1)
  • tonytonov (1)
  • grettke (1)
Top Labels
Issue Labels
Pull Request Labels

Packages

  • Total packages: 3
  • Total downloads:
    • cran 328,323 last-month
  • Total docker downloads: 78,267,735
  • Total dependent packages: 1,094
    (may contain duplicates)
  • Total dependent repositories: 4,786
    (may contain duplicates)
  • Total versions: 18
  • Total maintainers: 1
cran.r-project.org: reshape2

Flexibly Reshape Data: A Reboot of the Reshape Package

  • Versions: 10
  • Dependent Packages: 1,020
  • Dependent Repositories: 4,672
  • Downloads: 328,323 Last month
  • Docker Downloads: 78,267,735
Rankings
Dependent repos count: 0.1%
Dependent packages count: 0.1%
Downloads: 0.6%
Forks count: 1.3%
Stargazers count: 2.1%
Average: 3.6%
Docker downloads count: 17.3%
Maintainers (1)
Last synced: 11 months ago
proxy.golang.org: github.com/hadley/reshape
  • Versions: 5
  • Dependent Packages: 0
  • Dependent Repositories: 0
Rankings
Dependent packages count: 9.0%
Average: 9.6%
Dependent repos count: 10.2%
Last synced: 11 months ago
conda-forge.org: r-reshape2
  • Versions: 3
  • Dependent Packages: 74
  • Dependent Repositories: 114
Rankings
Dependent packages count: 1.0%
Dependent repos count: 3.2%
Average: 13.5%
Forks count: 23.9%
Stargazers count: 25.9%
Last synced: 11 months ago

Dependencies

DESCRIPTION cran
  • R >= 3.1 depends
  • Rcpp * imports
  • plyr >= 1.8.1 imports
  • stringr * imports
  • covr * suggests
  • lattice * suggests
  • testthat >= 0.8.0 suggests
.github/workflows/R-CMD-check.yaml actions
  • actions/cache v1 composite
  • actions/checkout v2 composite
  • actions/upload-artifact master composite
  • r-lib/actions/setup-pandoc master composite
  • r-lib/actions/setup-r master composite
.github/workflows/pkgdown.yaml actions
  • actions/cache v1 composite
  • actions/checkout v2 composite
  • r-lib/actions/setup-pandoc master composite
  • r-lib/actions/setup-r master composite
.github/workflows/pr-commands.yaml actions
  • actions/checkout v2 composite
  • r-lib/actions/pr-fetch master composite
  • r-lib/actions/pr-push master composite
  • r-lib/actions/setup-r master composite
.github/workflows/test-coverage.yaml actions
  • actions/cache v1 composite
  • actions/checkout v2 composite
  • r-lib/actions/setup-pandoc master composite
  • r-lib/actions/setup-r master composite