Expand description
Read-side indexing helpers for vectors, lists, matrices, and data frames.
Write-side (replacement) is in assignment.rs.
Enumsยง
- Indexing
Error - 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
dropnamed argument from index args (3rd+ position). Returnstrueifdropis 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.