inst/examples/ex_dist_get_item.R

d <- Dist(c(5, 0, 3, 7, 18, 0))
get_item(d, 1) # 5
get_item(d, 4) # 7

Try the rinform package in your browser

Any scripts or data that you put into this service are public.

rinform documentation built on April 1, 2018, 12:12 p.m.