Software
rray

rray

Simple Arrays

R

rray is an array manipulation library for R that provides stricter, more consistent array operations and implements broadcasting throughout the package. Broadcasting allows arrays of different dimensions to be combined in operations without manual reshaping, similar to NumPy’s behavior.

The package solves common array manipulation challenges by automatically handling dimension mismatches through broadcasting and consistently preserving dimensions where base R would drop them. It provides a unified toolkit that works with both its own rray class and base R matrices/arrays, offering more intuitive alternatives to functions like sweep(), cbind(), and rbind(). The implementation is built on the xtensor C++ library and uses vctrs for type stability.

Contributors