search for: pswbl

Displaying 2 results from an estimated 2 matches for "pswbl".

Did you mean: psbl
2017 Aug 10
3
Creating New Variable Using Ifelse
...ata <- getURL("https://raw.githubusercontent.com/cbenjamin1821/careertech-ed/master/elsq2wbl.csv") elsq2wbl <- read.csv(text = data) ##Recoding Negative Responses to NA elsq2wbl [elsq2wbl[, "EVERRELJOB"] < -3, "EVERRELJOB"] <- NA elsq2wbl [elsq2wbl[, "PSWBL"] < -2, "PSWBL"] <- NA #Labeling categorical variable levels elsq2wbl$EVERRELJOB <- factor(elsq2wbl$EVERRELJOB, levels = c(0,1), labels = c("No","Yes")) elsq2wbl$PSWBL <- factor(elsq2wbl$PSWBL, levels = c(0,1), labels = c("No","Yes&quot...
2017 Aug 10
0
Creating New Variable Using Ifelse
...q2wbl.csv") Did not work for me probably due to some restriction of data access. > elsq2wbl <- read.csv(text = data) > > ##Recoding Negative Responses to NA > elsq2wbl [elsq2wbl[, "EVERRELJOB"] < -3, "EVERRELJOB"] <- NA > elsq2wbl [elsq2wbl[, "PSWBL"] < -2, "PSWBL"] <- NA If you wanted recode values below zero to NA you can do this easily without any ifelse > summary(test) mp tepl kryst Min. : 7.11 Min. :100.0 Min. : 21.70 1st Qu.:32.25 1st Qu.:400.0 1st Qu.: 24.15 Median...