Coercion

as_array()

Coerce to an array

as_matrix()

Coerce to a matrix

as_rray()

Coerce to an rray

is_rray()

Is x an rray?

Construction

new_rray()

Create a new rray

rray()

Build a rray object

rray_full_like() rray_ones_like() rray_zeros_like()

Create an array like x

Dimension names

rray_dim_names_common() rray_dim_names2()

Find common dimension names

rray_dim_names() `rray_dim_names<-`() rray_set_dim_names() rray_axis_names() `rray_axis_names<-`() rray_set_axis_names() rray_row_names() `rray_row_names<-`() rray_set_row_names() rray_col_names() `rray_col_names<-`() rray_set_col_names()

Dimension names

Dimensions

rray_dim() rray_dim_common()

Find common dimensions

rray_dim_n()

Compute the number of dimensions of an object

rray_elems()

Compute the number of elements in an array

Subsetting

pad()

Pad missing dimensions when subsetting

`rray_subset<-`() `[<-`(<vctrs_rray>) rray_subset_assign() rray_subset() `[`(<vctrs_rray>)

Get or set dimensions of an array

`rray_extract<-`() rray_extract_assign() rray_extract()

Get or set elements of an array by index

`rray_slice<-`() rray_slice_assign() rray_slice()

Get or set a slice of an array

`rray_yank<-`() `[[<-`(<vctrs_rray>) rray_yank_assign() rray_yank() `[[`(<vctrs_rray>)

Get or set elements of an array by position

Manipulation

rray_bind() rray_rbind() rray_cbind()

Combine many arrays together into one array

rray_broadcast()

Broadcast to a new dimension

rray_reshape()

Reshape an array

rray_clip()

Bound the values of an array

rray_diag()

Create a matrix with x on the diagonal

rray_expand()

Insert a dimension into an rray

rray_flatten()

Flatten an array

rray_flip()

Flip an rray along a dimension

rray_sort()

Sort an array

rray_split()

Split an array along axes

rray_squeeze()

Squeeze an rray

rray_tile()

Tile an array

rray_transpose() t(<vctrs_rray>)

Transpose an array

rray_maximum() rray_minimum()

Maximum and minimum values

rray_rotate()

Rotate an array

Reducers

rray_max()

Calculate the maximum along an axis

rray_max_pos()

Locate the position of the maximum value

rray_mean()

Calculate the mean along an axis

rray_min()

Calculate the minimum along an axis

rray_min_pos()

Locate the position of the minimum value

rray_prod()

Calculate the product along an axis

rray_sum()

Calculate the sum along an axis

Duplicate and Unique

rray_duplicate_any() rray_duplicate_detect() rray_duplicate_id()

Find duplicated values in an array

rray_unique() rray_unique_loc() rray_unique_count()

Find and count unique values in an array

Arithmetic

`%b+%` rray_add() `%b-%` rray_subtract() `%b*%` rray_multiply() `%b/%` rray_divide() `%b^%` rray_pow() rray_identity() rray_opposite()

Arithmetic operations

rray_dot()

Matrix multiplication

rray_multiply_add()

Fused multiply-add

rray_hypot()

Compute the square root of the sum of squares

Comparison and Logical

`>`(<vctrs_rray>) rray_greater() `>=`(<vctrs_rray>) rray_greater_equal() `<`(<vctrs_rray>) rray_lesser() `<=`(<vctrs_rray>) rray_lesser_equal() `==`(<vctrs_rray>) rray_equal() `!=`(<vctrs_rray>) rray_not_equal()

Compare arrays

rray_all_equal() rray_any_not_equal()

Strictly compare arrays

rray_logical_and() rray_logical_or() rray_logical_not() rray_any() rray_all()

Logical operators

rray_if_else()

Conditional selection

Compatibility

vec_arith(<vctrs_rray>) vec_ptype2(<vctrs_rray_dbl>) vec_ptype2(<vctrs_rray_int>) vec_ptype2(<vctrs_rray_lgl>) vec_cast(<vctrs_rray_int>) vec_cast(<vctrs_rray_dbl>) vec_cast(<vctrs_rray_lgl>)

vctrs compatibility functions