Pick a single coo_df from a mom_tbl

pick(x, i)

Arguments

x

a mom_tbl or a coo_list

i

int which to extract. If not provided, pick one randomly.

Value

a coo_df

Note

Used to be [[ in Momocs < 2.0 (eg bot[[1]] is replace with bot %>% pick(1))

See also

slive

Other mom verbs: press(), slive(), unfold()

Examples

bot %>% pick(1) %>% gg()
bot$coo %>% pick(2)
#> # A tibble: 168 x 2 #> x y #> <dbl> <dbl> #> 1 53 535 #> 2 53 525 #> 3 54 505 #> 4 53 495 #> 5 54 485 #> 6 54 464 #> 7 54 454 #> 8 54 444 #> 9 54 424 #> 10 53 414 #> # … with 158 more rows #> ❯coo_single with 168 coordinates