Get or set existing variable mappings.
mapped_var(x) mapped_var(x, keep = TRUE) <- value
x | An |
---|---|
keep | Logical. Do we keep any previous mapped variables that are not
redifined in the |
value | A |
#> # A mapped object: count class #> # dim: 2 space, 0 time, 1 obs #> [x] [y] . . [i] #> x y xm ym i #> 1 1 1 0 0 0 #> 2 2 1 30 0 0 #> 3 3 1 60 0 3 #> 4 4 1 90 0 7 #> 5 5 1 120 0 9 #> 6 6 1 150 0 1 #> # ... with 57 more records (rows)mapped_var(my_data)#> * i -> i #> * x -> x #> * y -> y#> * i -> i #> * x -> X #> * y -> Y#> * i -> i #> * y -> Y #> * keep -> FALSE #> * r -> r #> * x -> x