Closed nathaneastwood closed 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.
switch()
{dplyr}
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.