Skip to main content

Module indexing

Module indexing 

Source
Expand description

Read-side indexing helpers for vectors, lists, matrices, and data frames. Write-side (replacement) is in assignment.rs.

Enumsยง

IndexingError
Structured error type for indexing operations.

Functionsยง

eval_dollar ๐Ÿ”’
eval_index ๐Ÿ”’
eval_index_double ๐Ÿ”’
eval_list_2d_index ๐Ÿ”’
eval_matrix_index ๐Ÿ”’
extract_dim_names ๐Ÿ”’
Extract a dimnames component (row names at index 0, col names at index 1).
extract_drop_arg ๐Ÿ”’
Extract the drop named argument from index args (3rd+ position). Returns true if drop is not specified (R default).
extract_vector_element
Extract a single element from an RVector at idx (0-based).
get_row_names_vec ๐Ÿ”’
Get row.names from a data frame list as character vector.
index_by_integer ๐Ÿ”’
index_by_logical ๐Ÿ”’
index_by_negative ๐Ÿ”’
resolve_df_row_index ๐Ÿ”’
Resolve data frame row indices, handling positive integers, negative integers, logical masks, and character row names. Returns 1-based positive indices.
resolve_dim_index ๐Ÿ”’
Resolve a row or column index against dimension size and optional dimnames. Returns 0-based indices.
subset_row_names ๐Ÿ”’
Subset row.names from a data frame list using 1-based integer indices. If the original has row names, select the corresponding ones. Otherwise generate fresh 1-based row names.