r-reshape2
An R package to flexible rearrange, reshape and aggregate data
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
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
Metadata Files
README.md
reshape2
Status
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:
dcastproduces data frames, andacastproduces matrices/arrays.multidimensional margins are now possible:
grand_rowandgrand_colhave 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
meltnow names the columns of its returned data frameVar1,Var2, ...,VarNinstead ofX1,X2, ...,XN.the argument
variable.nameofmeltreplaces the old argumentvariable_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
- Website: https://hadley.nz
- Repositories: 443
- Profile: https://github.com/hadley
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
Top Committers
| Name | 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
- Homepage: https://github.com/hadley/reshape
- Documentation: http://cran.r-project.org/web/packages/reshape2/reshape2.pdf
- License: MIT + file LICENSE
-
Latest release: 1.4.4
published over 6 years ago
Rankings
Maintainers (1)
proxy.golang.org: github.com/hadley/reshape
- Documentation: https://pkg.go.dev/github.com/hadley/reshape#section-documentation
- License: other
-
Latest release: v1.4.4
published over 6 years ago
Rankings
conda-forge.org: r-reshape2
- Homepage: https://github.com/hadley/reshape
- License: MIT
-
Latest release: 1.4.4
published over 6 years ago
Rankings
Dependencies
- R >= 3.1 depends
- Rcpp * imports
- plyr >= 1.8.1 imports
- stringr * imports
- covr * suggests
- lattice * suggests
- testthat >= 0.8.0 suggests
- 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
- actions/cache v1 composite
- actions/checkout v2 composite
- r-lib/actions/setup-pandoc master composite
- r-lib/actions/setup-r master composite
- 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
- actions/cache v1 composite
- actions/checkout v2 composite
- r-lib/actions/setup-pandoc master composite
- r-lib/actions/setup-r master composite