Returns a named vector that maps axis entry names to their corresponding integer indices.
Details
This function returns the mapping between entry names and their positions along the axis. This is useful for efficient lookups when you need to convert between names and indices repeatedly. In R, indices are 1-based (first element has index 1), consistent with R conventions. See the Julia documentation for details.