idx_extract: Extract from an idx_tbl

View source: R/slice.R

idx_extractR Documentation

Extract from an idx_tbl

Description

Always returns an idx_tbl with at least 1 less index dimension than the input, analagous to [[ with a nested list.

Usage

idx_extract(x, ...)

Arguments

x

idx_tbl

...

index values to extract

Examples

pop <- idx_tibble(tidyr::population)
pop_grow <- pop / idx_extract(pop, year=2000)

jameelalsalam/indexvctrs documentation built on Oct. 28, 2023, 3:26 a.m.