search for: everreljob

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

2017 Aug 10
3
Creating New Variable Using Ifelse
...t been successful. Any help is greatly appreciated. Here is a MRE:? library(RCurl) data <- 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 <...
2017 Aug 10
0
Creating New Variable Using Ifelse
...getURL("https://raw.githubusercontent.com/cbenjamin1821/careertech- > ed/master/elsq2wbl.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...