← Back to home
Comparison · Analytics

affiner vs socialmixr

A side-by-side editorial comparison of affiner and socialmixr — release velocity, themes, recent moves, and the top alternatives to consider.

affiner vs socialmixr: at a glance

Featureaffinersocialmixr
SectorAnalyticsAnalytics
Velocity score0.00.0
Sparks · 30d00
Top themesr-package, computational-geometry, grid-graphics, affine-transformscontact matrices, epidemiology, pipeline api, breaking changes
Last editorial update1h ago5h ago
WebsiteVisit →Visit →

What is affiner?

affiner is quietly turning a grid transformation helper into a small computational geometry library.

An R package that began as a wrapper around grid's affine transformation primitives, with an angle vector class supporting degrees, radians, half-turns, turns and gradians so users need not convert by hand. Four releases in roughly eighteen months. The recent two have expanded well past that starting point into geometric objects and the predicates that operate on them.

Read the full affiner trajectory →

What is socialmixr?

socialmixr breaks its one-shot contact_matrix() call into a composable pipeline.

socialmixr builds age-structured social contact matrices from survey data for infectious-disease modelling. Version 0.6.0 replaces the monolithic contact_matrix() entry point with a chain of composable steps — filter, assign age groups, weigh, compute, then symmetrise, split or convert per capita — behind a new contact_matrix S3 class. Survey downloading is being handed off to a separate contactsurveys package.

Read the full socialmixr trajectory →

affiner vs socialmixr: editorial side-by-side

A
affiner
ANALYTICS
0.0

affiner is quietly turning a grid transformation helper into a small computational geometry library.

◆ Current state

An R package that began as a wrapper around grid's affine transformation primitives, with an angle vector class supporting degrees, radians, half-turns, turns and gradians so users need not convert by hand. Four releases in roughly eighteen months. The recent two have expanded well past that starting point into geometric objects and the predicates that operate on them.

◆ Where it's heading

The direction is clear from the order things arrived. Version 0.2.1 added the predicate layer first — has_intersection(), intersection(), is_equivalent() and is_parallel() as S3 generics working across angle vectors, points, lines and planes. Version 0.3.1 then supplied the objects those generics need, with Ellipse2D, Polygon2D and Segment2D R6 classes plus constructors for rectangles, regular n-gons and isotoxal star polygons, and dot products at one, two and three dimensions. Building the operations before the shapes is unusual ordering but it means each new object type arrives already composable with everything else.

◆ Prediction

Expect more 2D and 3D object types filling out the same generic interface, and the geometry side to keep outgrowing the grid-transformation wrapper the package was named for.

S
socialmixr
ANALYTICS
0.0

socialmixr breaks its one-shot contact_matrix() call into a composable pipeline.

◆ Current state

socialmixr builds age-structured social contact matrices from survey data for infectious-disease modelling. Version 0.6.0 replaces the monolithic contact_matrix() entry point with a chain of composable steps — filter, assign age groups, weigh, compute, then symmetrise, split or convert per capita — behind a new contact_matrix S3 class. Survey downloading is being handed off to a separate contactsurveys package.

◆ Where it's heading

The arc from 0.4.0 to 0.6.0 is decomposition: first extracting helpers like assign_age_groups(), then moving downloads out of the package, and now exposing every stage of matrix construction as its own verb. Breaking changes are accepted at each step — preserved empty age groups, arrays instead of xtabs, [N,Inf) labels — with the new class inheriting from list so existing $matrix access keeps working. The label change is explicitly aligned with the contactmatrix package.

◆ Prediction

Expect the deprecated dotted argument names and the remaining in-package download paths to be removed once the contactsurveys handoff completes, leaving contact_matrix() as a thin wrapper over the pipeline.

Alternatives to affiner and socialmixr

Other Analytics products tracked by Sparkpulse, ranked by recent ship velocity. Each card links to a full editorial trajectory and lets you pivot into a head-to-head comparison with either affiner or socialmixr.

See all affiner alternatives → · See all socialmixr alternatives →

Recent activity from affiner and socialmixr

Latest ship moves from both products, interleaved chronologically. ⚡ = editorial spark.

  1. 3mo agoaffinerEllipse, polygon and segment objects, with star and n-gon constructors
  2. 3mo agosocialmixrContact matrices become a composable pipeline
  3. 6mo agosocialmixrPatch: load_survey() handles files without cont_id
  4. 6mo agoaffinerIntersection, equivalence and parallelism generics across geometric types
  5. 6mo agosocialmixrAge-group assignment and population lookup split out
  6. 1y agoaffinerIsocube border fill forced transparent
  7. 1y agosocialmixrFaster survey loading and cached Zenodo lookups
  8. 1y agoaffinerInitial release: affine grob wrappers and multi-unit angle vectors
  9. 2y agosocialmixrcontact_matrix() now takes survey objects only
  10. 2y agosocialmixrTest fixes for machine-precision failures

Frequently asked questions

What is the difference between affiner and socialmixr?

They serve adjacent needs but don't currently overlap on shipped themes. affiner and socialmixr are shipping at a similar cadence (velocity 0.0 vs 0.0, both within Sparkpulse's "active" band). See the at-a-glance table above for a side-by-side breakdown of velocity, recent sparks, and editorial themes.

Is affiner better than socialmixr?

Sparkpulse doesn't pick a winner — we score release velocity, not feature parity. affiner and socialmixr are shipping at a similar cadence (velocity 0.0 vs 0.0, both within Sparkpulse's "active" band). For your specific use case, the alternatives sections above list other Analytics products to evaluate alongside.

What are the best alternatives to affiner?

Top affiner alternatives in Analytics are ranked by recent ship velocity. Browse the "affiner alternatives" section above for the current picks, or visit /alternatives/affiner-r for the full list with editorial commentary on each.

What are the best alternatives to socialmixr?

Top socialmixr alternatives in Analytics are ranked by recent ship velocity. Browse the "socialmixr alternatives" section above for the current picks, or visit /alternatives/socialmixr for the full list with editorial commentary on each.