Provides a technique for converting neighborhood identifiers between their numeric, string, and factor formats.
gw_nhood(.data, var, new_var, to)
.data | Data frame, tibble, or |
---|---|
var | Variable to base conversions on |
new_var | Name of new variable; if none is specified, the |
to | The output format of the data |