Top "Recode" questions

Recoding refers to the process of modifying the values of dataset, matrix, or vector according to a set of rules by which input values are changed to replacement values.

Replace a value in a data frame based on a conditional (`if`) statement

In the R data frame coded for below, I would like to replace all of the times that B appears …

r recode
R: How to recode multiple variables at once

I have several variables in my dataset that need to be recoded in exactly the same way, and several other …

r dplyr recode
Recode numeric values in R

I want to recode some numeric values into different numeric values and have had a go using the following code: …

r numeric recode
Recode multiple columns using dplyr

I had a dataframe where I recoded several columns so that 999 was set to NA dfB <-dfA %>% mutate(…

r dplyr recode mutate
How to use recode_factor in dplyr for recoding multiple factor values?

countrycode event 1713 ESP 110mh 1009 NED HJ 536 BLR LJ 2882 FRA 1500m 509 EST LJ 2449 BEL PV 1022 EST HJ 2530 USA JT 2714 CUB JT 1236 …

r dplyr tidyverse recode
Recode a string column into integer using dplyr

How to create a new integer column recode which recodes for an existing column y in the dataframe df using …

r dplyr recode