collapse
priceR
Our great sponsors
collapse | priceR | |
---|---|---|
2 | 1 | |
599 | 55 | |
- | - | |
9.6 | 7.1 | |
8 days ago | 3 months ago | |
C | R | |
GNU General Public License v3.0 or later | GNU General Public License v3.0 or later |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
collapse
-
is there a package using data.table that provides functions for descriptive stats, missingness etc?
The ask is a little unclear. You might be interested in collapse and more generally in other packages in the fastverse. I guess it's also worth pointing out that data.table already provides alternative methods for certain base R descriptive stats functions (e.g., mean, etc.) that are automatically used when applied to datatables.
-
Benchmarking for loops vs apply and others
If you are looking for performance I would recommend to check the collapse package. The following line "collapse" = collapse::fsum(df_datatable$x, g=df_datatable$g) is around 2x faster than base::rowsum, and the dplyr style syntax doesn't add that much of an overhead "collapse dplyr" = df_datatable |> fgroup_by(g) |> fsum(x)
priceR
-
Choosing Julia, Matlab, Python or R in economics?
I was an economist doing econometrics in excel when in 2014 the datasets went being a few 10,000's rows to a few 1,000,000's rows. I found R easiest to learn simply as a CS outsider because it was less strict about package versions and installation requirements, which made it easier for a beginner. I learned it by googling every little step ('how read in csv', 'how create new column in data.frame' etc) until I had a ~40 line R script that did what I was previously doing by hand in excel. It ran in a few seconds and did what took excel about 10 minutes.
A few years later I wrote an open source economics library in R: https://github.com/stevecondylios/priceR#pricer- It converts between nominal and real prices, converts between 171 currencies, and has a few regex's for pulling numeric data out of text (e.g. salaries out of job descriptions).
Some specific observations regarding the article:
- Comparing computation speed seems a bizarre metric to care about. 6x faster matters on things that take minutes, hours or days, but less so for operations that already run in under 1000ms. Developer experience is usually more important IME.
What are some alternatives?
fastverse - An Extensible Suite of High-Performance and Low-Dependency Packages for Statistical Computing and Data Manipulation in R
fecon235 - Notebooks for financial economics. Keywords: Jupyter notebook pandas Federal Reserve FRED Ferbus GDP CPI PCE inflation unemployment wage income debt Case-Shiller housing asset portfolio equities SPX bonds TIPS rates currency FX euro EUR USD JPY yen XAU gold Brent WTI oil Holt-Winters time-series forecasting statistics econometrics
writexl - Portable, light-weight data frame to xlsx exporter for R
QuantEcon.jl - Julia implementation of QuantEcon routines
epanet2toolkit - An R package for calling the Epanet software for simulation of piping networks.
WeightedTreemaps - Create Voronoi and Sunburst Treemaps from Hierarchical data
bruceR - 📦 BRoadly Useful Convenient and Efficient R functions that BRing Users Concise and Elegant R data analyses.
poibin - Poisson Binomial Probability Distribution for Python
tableone - R package to create "Table 1", description of baseline characteristics with or without propensity score weighting
r-yaml - R package for converting objects to and from YAML
SciPy - SciPy library main repository