nathaneastwood / poorman

A poor man's dependency free grammar of data manipulation
https://nathaneastwood.github.io/poorman/
Other
338 stars 15 forks source link

[FEAT] Add `recode()` #35

Closed nathaneastwood closed 4 years ago

nathaneastwood commented 4 years ago

This is a vectorised version of switch(): you can replace numeric values based on their position or their name, and character or factor values only by their name. This is an S3 generic: {dplyr} provides methods for numeric, character, and factors.